mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
* refactor: cleanup cake_pay folder * refactor: add My Cards tab on the main screen * ui: add user card item * refactor: cakePay purchase flow * feat: add user card info * refactor: auth flow * refactor: theme data * revert * Update qr_widget.dart * fix: update with new themes * minor fixes * feat: put redemption flow under a feature flag * feat: implement simulated purchasing flow in debug mode * feat: support LTC and MWEB payments * Update savings_page.dart * fix: UI fixes * add Cake Pay transaction sent bottom sheet * localization * Update cake_pay_buy_card_page.dart * addressing review comments * fix marge conflicts
28 lines
771 B
Dart
28 lines
771 B
Dart
import 'dart:ui';
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class RoundedCheckbox extends StatelessWidget {
|
|
RoundedCheckbox({Key? key, required this.value}) : super(key: key);
|
|
|
|
final bool value;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return value
|
|
? Container(
|
|
height: 20.0,
|
|
width: 20.0,
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.all(Radius.circular(50.0)),
|
|
color: Theme.of(context).colorScheme.primary,
|
|
),
|
|
child: Icon(
|
|
Icons.check,
|
|
color: Theme.of(context).colorScheme.surface,
|
|
size: 14.0,
|
|
))
|
|
: Offstage();
|
|
}
|
|
}
|