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 keySearchField = Key('keySearchField');
const keyConfirmSearch = Key('keyConfirmSearch'); const keyConfirmSearch = Key('keyConfirmSearch');
// Unit keys // Items keys
Key keyTransaction(int keyId) => Key('keyTransaction$keyId'); Key keyTransaction(int keyId) => Key('keyTransaction$keyId');
Key keyMnemonicWord(String word) => Key('keyMnemonicWord$word'); Key keyMnemonicWord(String word) => Key('keyMnemonicWord$word');
Key keySearchResult(String keyId) => Key('keySearchResult$keyId'); Key keySearchResult(String address) => Key('keySearchResult$address');
Key keySelectDuniterNode(String keyId) => Key('keySelectDuniterNode$keyId'); Key keySelectDuniterNode(String endpoint) =>
Key keyOpenWallet(String keyId) => Key('keyOpenWallet$keyId'); Key('keySelectDuniterNode$endpoint');
Key keySelectThisWallet(String keyId) => Key('keySelectThisWallet$keyId'); 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 SizedBox(width: 22),
const Spacer(), const Spacer(),
IconButton(key: keyAppBarQrcode, IconButton(
key: keyAppBarQrcode,
iconSize: 70, iconSize: 70,
icon: const Image(image: AssetImage('assets/qrcode-scan.png')), icon: const Image(image: AssetImage('assets/qrcode-scan.png')),
onPressed: () async { onPressed: () async {
@ -180,7 +181,8 @@ class HomeProvider with ChangeNotifier {
), ),
const Spacer(), const Spacer(),
const SizedBox(width: 15), const SizedBox(width: 15),
IconButton(key: keyAppBarChest, IconButton(
key: keyAppBarChest,
iconSize: 60, iconSize: 60,
icon: const Image(image: AssetImage('assets/wallet.png')), icon: const Image(image: AssetImage('assets/wallet.png')),
onPressed: () async { onPressed: () async {

View File

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

View File

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

View File

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