flutter format

This commit is contained in:
poka 2022-08-24 23:59:51 +02:00
parent 27e4de7254
commit c060c85df8
5 changed files with 16 additions and 10 deletions

View File

@ -83,10 +83,11 @@ const keyGoWalletsHome = Key('keyGoWalletsHome');
const keySearchField = Key('keySearchField');
const keyConfirmSearch = Key('keyConfirmSearch');
// Unit keys
// Items keys
Key keyTransaction(int keyId) => Key('keyTransaction$keyId');
Key keyMnemonicWord(String word) => Key('keyMnemonicWord$word');
Key keySearchResult(String keyId) => Key('keySearchResult$keyId');
Key keySelectDuniterNode(String keyId) => Key('keySelectDuniterNode$keyId');
Key keyOpenWallet(String keyId) => Key('keyOpenWallet$keyId');
Key keySelectThisWallet(String keyId) => Key('keySelectThisWallet$keyId');
Key keySearchResult(String address) => Key('keySearchResult$address');
Key keySelectDuniterNode(String endpoint) =>
Key('keySelectDuniterNode$endpoint');
Key keyOpenWallet(String address) => Key('keyOpenWallet$address');
Key keySelectThisWallet(String address) => Key('keySelectThisWallet$address');

View File

@ -167,7 +167,8 @@ class HomeProvider with ChangeNotifier {
),
const SizedBox(width: 22),
const Spacer(),
IconButton(key: keyAppBarQrcode,
IconButton(
key: keyAppBarQrcode,
iconSize: 70,
icon: const Image(image: AssetImage('assets/qrcode-scan.png')),
onPressed: () async {
@ -180,7 +181,8 @@ class HomeProvider with ChangeNotifier {
),
const Spacer(),
const SizedBox(width: 15),
IconButton(key: keyAppBarChest,
IconButton(
key: keyAppBarChest,
iconSize: 60,
icon: const Image(image: AssetImage('assets/wallet.png')),
onPressed: () async {

View File

@ -238,7 +238,8 @@ class WalletOptionsProvider with ChangeNotifier {
height: 100,
child: Column(children: [
const SizedBox(height: 20),
TextField(key: keyEnterIdentityUsername,
TextField(
key: keyEnterIdentityUsername,
onChanged: (_) => notifyListeners(),
inputFormatters: <TextInputFormatter>[
// FilteringTextInputFormatter.allow(RegExp("[0-9a-zA-Z]")),

View File

@ -292,7 +292,8 @@ class WalletOptions extends StatelessWidget {
SizedBox(
width: 320,
height: 60,
child: ElevatedButton(key: keyConfirmIdentity,
child: ElevatedButton(
key: keyConfirmIdentity,
style: ElevatedButton.styleFrom(
elevation: 4,
primary: orangeC, // background

View File

@ -481,7 +481,8 @@ class WalletViewScreen extends StatelessWidget {
),
const SizedBox(height: 10),
Consumer<SubstrateSdk>(builder: (context, sub, _) {
return InkWell(key: keyChangeChest,
return InkWell(
key: keyChangeChest,
onTap: () async {
String? pin;
if (myWalletProvider.pinCode == '') {