fix flutter format

This commit is contained in:
poka 2022-09-05 08:12:24 +02:00
parent d9222fe6ba
commit 03a9f1ea19
16 changed files with 48 additions and 24 deletions

View File

@ -65,7 +65,8 @@ class CommonElements {
child: ElevatedButton( child: ElevatedButton(
key: keyGoNext, key: keyGoNext,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, backgroundColor: orangeC, elevation: 4, // foreground foregroundColor: Colors.white, backgroundColor: orangeC,
elevation: 4, // foreground
), ),
onPressed: () { onPressed: () {
Navigator.push( Navigator.push(

View File

@ -538,9 +538,11 @@ Widget welcomeHome(context) {
SizedBox( SizedBox(
width: 410, width: 410,
height: 70, height: 70,
child: ElevatedButton(key: keyOnboardingNewChest, child: ElevatedButton(
key: keyOnboardingNewChest,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: () { onPressed: () {
Navigator.push( Navigator.push(

View File

@ -111,7 +111,8 @@ class _ChooseChestState extends State<ChooseChest> {
height: 70, height: 70,
child: ElevatedButton( child: ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.black, backgroundColor: orangeC, // foreground foregroundColor: Colors.black,
backgroundColor: orangeC, // foreground
), ),
onPressed: () async { onPressed: () async {
await configBox.put('currentChest', currentChest); await configBox.put('currentChest', currentChest);

View File

@ -48,7 +48,8 @@ class ChooseWalletScreen extends StatelessWidget {
child: ElevatedButton( child: ElevatedButton(
key: keyConfirm, key: keyConfirm,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: () async { onPressed: () async {
await sub.setCurrentWallet(selectedWallet!); await sub.setCurrentWallet(selectedWallet!);

View File

@ -107,7 +107,8 @@ class _CustomDerivationState extends State<CustomDerivation> {
height: 70, height: 70,
child: ElevatedButton( child: ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: () async { onPressed: () async {
WalletData? defaultWallet = WalletData? defaultWallet =

View File

@ -239,7 +239,8 @@ class ImportG1v1 extends StatelessWidget {
child: ElevatedButton( child: ElevatedButton(
key: keyConfirm, key: keyConfirm,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: canValidate onPressed: canValidate
? () async { ? () async {

View File

@ -188,7 +188,8 @@ class MigrateIdentityScreen extends StatelessWidget {
height: 60 * ratio, height: 60 * ratio,
child: ElevatedButton( child: ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: canValidate onPressed: canValidate
? () async { ? () async {

View File

@ -94,7 +94,8 @@ class RestoreChest extends StatelessWidget {
child: ElevatedButton( child: ElevatedButton(
key: keyGoNext, key: keyGoNext,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: () async { onPressed: () async {
if (await sub if (await sub
@ -132,7 +133,8 @@ class RestoreChest extends StatelessWidget {
child: ElevatedButton( child: ElevatedButton(
key: keyPastMnemonic, key: keyPastMnemonic,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.black, elevation: 4, backgroundColor: yellowC, // foreground foregroundColor: Colors.black, elevation: 4,
backgroundColor: yellowC, // foreground
), ),
onPressed: () { onPressed: () {
genW.pasteMnemonic(context); genW.pasteMnemonic(context);

View File

@ -73,9 +73,11 @@ class ShowSeed extends StatelessWidget {
height: 40, height: 40,
child: ElevatedButton( child: ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.black, shape: RoundedRectangleBorder( foregroundColor: Colors.black,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8),
), backgroundColor: orangeC, ),
backgroundColor: orangeC,
elevation: 1, // foreground elevation: 1, // foreground
), ),
onPressed: () { onPressed: () {
@ -121,7 +123,8 @@ class ShowSeed extends StatelessWidget {
height: 60 * ratio, height: 60 * ratio,
child: ElevatedButton( child: ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);

View File

@ -299,7 +299,8 @@ class WalletOptions extends StatelessWidget {
child: ElevatedButton( child: ElevatedButton(
key: keyConfirmIdentity, key: keyConfirmIdentity,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: () { onPressed: () {
walletProvider.confirmIdentityPopup(context); walletProvider.confirmIdentityPopup(context);
@ -363,9 +364,11 @@ class WalletOptions extends StatelessWidget {
height: 40, height: 40,
child: ElevatedButton( child: ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.black, shape: RoundedRectangleBorder( foregroundColor: Colors.black,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8),
), backgroundColor: orangeC, ),
backgroundColor: orangeC,
elevation: 1, // foreground elevation: 1, // foreground
), ),
onPressed: () { onPressed: () {

View File

@ -36,7 +36,6 @@ class WalletsHome extends StatelessWidget {
myWalletProvider.listWallets = myWalletProvider.listWallets =
myWalletProvider.readAllWallets(currentChestNumber); myWalletProvider.readAllWallets(currentChestNumber);
return WillPopScope( return WillPopScope(
onWillPop: () { onWillPop: () {
// myWalletProvider.pinCode = myWalletProvider.mnemonic = ''; // myWalletProvider.pinCode = myWalletProvider.mnemonic = '';
@ -88,7 +87,8 @@ class WalletsHome extends StatelessWidget {
height: 60, height: 60,
), ),
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.black, elevation: 2, backgroundColor: floattingYellow, // foreground foregroundColor: Colors.black, elevation: 2,
backgroundColor: floattingYellow, // foreground
), ),
onPressed: () => Navigator.push( onPressed: () => Navigator.push(
context, context,

View File

@ -83,7 +83,8 @@ class _ChooseChestState extends State<OnboardingStepFive> {
child: ElevatedButton( child: ElevatedButton(
key: keyGenerateMnemonic, key: keyGenerateMnemonic,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.black, elevation: 4, backgroundColor: const Color(0xffFFD58D), // foreground foregroundColor: Colors.black, elevation: 4,
backgroundColor: const Color(0xffFFD58D), // foreground
), ),
onPressed: () { onPressed: () {
// _generateWalletProvider.reloadBuild(); // _generateWalletProvider.reloadBuild();
@ -231,7 +232,8 @@ Widget nextButton(
child: ElevatedButton( child: ElevatedButton(
key: keyGoNext, key: keyGoNext,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: () { onPressed: () {
generateWalletProvider.nbrWord = generateWalletProvider.getRandomInt(); generateWalletProvider.nbrWord = generateWalletProvider.getRandomInt();

View File

@ -81,7 +81,10 @@ class OnboardingStepNine extends StatelessWidget {
child: ElevatedButton( child: ElevatedButton(
key: keyChangePin, key: keyChangePin,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.black, elevation: 4, backgroundColor: const Color(0xffFFD58D), // foreground foregroundColor: Colors.black,
elevation: 4,
backgroundColor:
const Color(0xffFFD58D), // foreground
), ),
onPressed: () { onPressed: () {
generateWalletProvider.changePinCode( generateWalletProvider.changePinCode(

View File

@ -95,7 +95,8 @@ class SearchScreen extends StatelessWidget {
child: ElevatedButton( child: ElevatedButton(
key: keyConfirmSearch, key: keyConfirmSearch,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: searchProvider.searchController.text.length >= 2 onPressed: searchProvider.searchController.text.length >= 2
? () { ? () {

View File

@ -267,7 +267,8 @@ class TransactionInProgress extends StatelessWidget {
child: ElevatedButton( child: ElevatedButton(
key: keyCloseTransactionScreen, key: keyCloseTransactionScreen,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);

View File

@ -626,7 +626,8 @@ class WalletViewScreen extends StatelessWidget {
child: ElevatedButton( child: ElevatedButton(
key: keyConfirmPayment, key: keyConfirmPayment,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground foregroundColor: Colors.white, elevation: 4,
backgroundColor: orangeC, // foreground
), ),
onPressed: canValidate onPressed: canValidate
? () async { ? () async {