Generic enhancements (#1668)

* Add more choices for pin code required duration

* Fix spacing in Cake Features

* Update Cake Features cards

* Update Cake Pay image

* Add NanoGPT image

* Update Sign/Verify strings

* Update more flags

* update moonpay currency name

* Update more icons

* Add friendly message for less than minimum fee

* fix translation [skip ci]

* Fix icon theming and add Telegram link

* Fix color issue for restore screen

* rename matic poly to pol

* minor potential fix [skip ci]

* minor fix [skip ci]

* Update analysis_options.yaml

* fix translations

* fix translation

* revert regex changes

* Update bitcoin_cash_electrum_server_list.yml

* Update address_validator.dart

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
This commit is contained in:
tuxsudo
2024-09-23 17:10:40 +03:00
committed by GitHub
co-authored by OmarHatem
parent e2b3507134
commit 6592b7a3c5
58 changed files with 276 additions and 194 deletions
+4 -1
View File
@@ -11,6 +11,7 @@ class DashBoardRoundedCardWidget extends StatelessWidget {
required this.subTitle,
this.hint,
this.svgPicture,
this.image,
this.icon,
this.onClose,
this.customBorder,
@@ -22,6 +23,7 @@ class DashBoardRoundedCardWidget extends StatelessWidget {
final String subTitle;
final Widget? hint;
final SvgPicture? svgPicture;
final Image? image;
final Icon? icon;
final double? customBorder;
@@ -77,7 +79,8 @@ class DashBoardRoundedCardWidget extends StatelessWidget {
],
),
),
if (svgPicture != null) svgPicture!,
if (image != null) image!
else if (svgPicture != null) svgPicture!,
if (icon != null) icon!
],
),
+7 -4
View File
@@ -4,13 +4,16 @@ import 'package:flutter/material.dart';
class OptionTile extends StatelessWidget {
const OptionTile(
{required this.onPressed,
required this.image,
this.image,
this.icon,
required this.title,
required this.description,
super.key});
super.key})
: assert(image!=null || icon!=null);
final VoidCallback onPressed;
final Image image;
final Image? image;
final Icon? icon;
final String title;
final String description;
@@ -31,7 +34,7 @@ class OptionTile extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
image,
icon ?? image!,
Expanded(
child: Padding(
padding: EdgeInsets.only(left: 16),