mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-25 05:58:42 +01:00
TMP 2
This commit is contained in:
@@ -73,3 +73,11 @@ class ConnectedSyncStatus extends SyncStatus {
|
||||
@override
|
||||
String title() => S.current.sync_status_connected;
|
||||
}
|
||||
|
||||
class LostConnectionSyncStatus extends SyncStatus {
|
||||
@override
|
||||
double progress() => 1.0;
|
||||
|
||||
@override
|
||||
String title() => S.current.sync_status_failed_connect;
|
||||
}
|
||||
@@ -7,6 +7,7 @@ abstract class TransactionInfo extends Object {
|
||||
bool isPending;
|
||||
DateTime date;
|
||||
int height;
|
||||
int confirmations;
|
||||
String amountFormatted();
|
||||
String fiatAmount();
|
||||
void changeFiatAmount(String amount);
|
||||
|
||||
@@ -159,7 +159,8 @@ class SendFormState extends State<SendForm> {
|
||||
decoration: InputDecoration(
|
||||
prefixIcon: Padding(
|
||||
padding: EdgeInsets.only(top: 12),
|
||||
child: Text('${widget.sendViewModel.currency.toString()}:',
|
||||
child: Text(
|
||||
'${widget.sendViewModel.currency.toString()}:',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -213,7 +214,14 @@ class SendFormState extends State<SendForm> {
|
||||
borderSide: BorderSide(
|
||||
color: Theme.of(context).dividerColor,
|
||||
width: 1.0))),
|
||||
validator: widget.sendViewModel.amountValidator),
|
||||
validator: (String value) {
|
||||
if (widget.sendViewModel.all) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return widget.sendViewModel.amountValidator
|
||||
.call(value);
|
||||
}),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 20),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
@@ -48,6 +49,9 @@ class TransactionDetailsPage extends BasePage {
|
||||
StandartListItem(
|
||||
title: S.current.transaction_details_date,
|
||||
value: dateFormat.format(tx.date)),
|
||||
StandartListItem(
|
||||
title: 'Confirmations',
|
||||
value: tx.confirmations?.toString()),
|
||||
StandartListItem(
|
||||
title: S.current.transaction_details_height, value: '${tx.height}'),
|
||||
StandartListItem(
|
||||
|
||||
Reference in New Issue
Block a user