mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01:00
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:
@@ -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!
|
||||
],
|
||||
),
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user