mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
Flutter upgrade
This commit is contained in:
@@ -12,7 +12,7 @@ import 'package:flutter_mobx/flutter_mobx.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
||||
class UnspentCoinsDetailsPage extends BasePage {
|
||||
UnspentCoinsDetailsPage({this.unspentCoinsDetailsViewModel});
|
||||
UnspentCoinsDetailsPage({required this.unspentCoinsDetailsViewModel});
|
||||
|
||||
@override
|
||||
String get title => S.current.unspent_coins_details_title;
|
||||
@@ -21,7 +21,9 @@ class UnspentCoinsDetailsPage extends BasePage {
|
||||
|
||||
@override
|
||||
Widget body(BuildContext context) {
|
||||
// FIX-ME: Added `context` it was not used here before, maby bug ?
|
||||
return SectionStandardList(
|
||||
context: context,
|
||||
sectionCount: 1,
|
||||
itemCounter: (int _) => unspentCoinsDetailsViewModel.items.length,
|
||||
itemBuilder: (_, __, index) {
|
||||
@@ -49,7 +51,7 @@ class UnspentCoinsDetailsPage extends BasePage {
|
||||
));
|
||||
}
|
||||
|
||||
return null;
|
||||
return Container();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ import 'package:flutter_mobx/flutter_mobx.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
||||
class UnspentCoinsListPage extends BasePage {
|
||||
UnspentCoinsListPage({this.unspentCoinsListViewModel});
|
||||
UnspentCoinsListPage({required this.unspentCoinsListViewModel});
|
||||
|
||||
@override
|
||||
String get title => S.current.unspent_coins_title;
|
||||
@@ -18,7 +18,7 @@ class UnspentCoinsListPage extends BasePage {
|
||||
//@override
|
||||
//Widget trailing(BuildContext context) {
|
||||
// final questionImage = Image.asset('assets/images/question_mark.png',
|
||||
// color: Theme.of(context).primaryTextTheme.title.color);
|
||||
// color: Theme.of(context).primaryTextTheme!.headline6!.color!);
|
||||
|
||||
// return SizedBox(
|
||||
// height: 20.0,
|
||||
|
||||
@@ -6,12 +6,12 @@ import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
||||
class UnspentCoinsListItem extends StatelessWidget {
|
||||
UnspentCoinsListItem({
|
||||
@required this.note,
|
||||
@required this.amount,
|
||||
@required this.address,
|
||||
@required this.isSending,
|
||||
@required this.isFrozen,
|
||||
@required this.onCheckBoxTap,
|
||||
required this.note,
|
||||
required this.amount,
|
||||
required this.address,
|
||||
required this.isSending,
|
||||
required this.isFrozen,
|
||||
this.onCheckBoxTap,
|
||||
});
|
||||
|
||||
static const amountColor = Palette.darkBlueCraiola;
|
||||
@@ -24,7 +24,7 @@ class UnspentCoinsListItem extends StatelessWidget {
|
||||
final String address;
|
||||
final bool isSending;
|
||||
final bool isFrozen;
|
||||
final Function() onCheckBoxTap;
|
||||
final Function()? onCheckBoxTap;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -51,9 +51,9 @@ class UnspentCoinsListItem extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(
|
||||
color: Theme.of(context)
|
||||
.primaryTextTheme
|
||||
.caption
|
||||
.color,
|
||||
.primaryTextTheme!
|
||||
.caption!
|
||||
.color!,
|
||||
width: 1.0),
|
||||
borderRadius: BorderRadius.all(
|
||||
Radius.circular(8.0)),
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import 'package:cake_wallet/src/widgets/standart_switch.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class UnspentCoinsSwitchRow extends StatelessWidget {
|
||||
UnspentCoinsSwitchRow(
|
||||
{this.title,
|
||||
this.titleFontSize = 14,
|
||||
this.switchValue,
|
||||
this.onSwitchValueChange});
|
||||
{required this.title,
|
||||
required this.switchValue,
|
||||
required this.onSwitchValueChange,
|
||||
this.titleFontSize = 14});
|
||||
|
||||
final String title;
|
||||
final double titleFontSize;
|
||||
@@ -30,7 +29,7 @@ class UnspentCoinsSwitchRow extends StatelessWidget {
|
||||
fontSize: titleFontSize,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Theme.of(context)
|
||||
.primaryTextTheme.overline.color),
|
||||
.primaryTextTheme!.overline!.color!),
|
||||
textAlign: TextAlign.left),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 12),
|
||||
|
||||
Reference in New Issue
Block a user