From e90e3063aedb6ff544724a455e8cccafa7b5519a Mon Sep 17 00:00:00 2001 From: poka Date: Tue, 14 Jun 2022 22:10:35 +0200 Subject: [PATCH] fix flutter format --- lib/providers/wallet_options.dart | 28 ++++++++++++++++++++-------- lib/screens/common_elements.dart | 1 - lib/screens/onBoarding/7.dart | 3 ++- lib/screens/template_screen.dart | 3 +-- 4 files changed, 23 insertions(+), 12 deletions(-) diff --git a/lib/providers/wallet_options.dart b/lib/providers/wallet_options.dart index 1270bbf..2a6cc0b 100644 --- a/lib/providers/wallet_options.dart +++ b/lib/providers/wallet_options.dart @@ -128,9 +128,9 @@ class WalletOptionsProvider with ChangeNotifier { Widget idtyStatus(BuildContext context, String address, {bool isOwner = false, Color color = Colors.black}) { -DuniterIndexer _duniterIndexer = + DuniterIndexer _duniterIndexer = Provider.of(context, listen: false); - + _showText(String text, [double size = 18, bool _bold = false, bool smooth = true]) { log.d(text); @@ -176,16 +176,30 @@ DuniterIndexer _duniterIndexer = { return isOwner ? _showText('Identité confirmé') - : _duniterIndexer.getNameByAddress(context, address, null, 20, true, - Colors.grey[700]!, FontWeight.w500, FontStyle.italic); + : _duniterIndexer.getNameByAddress( + context, + address, + null, + 20, + true, + Colors.grey[700]!, + FontWeight.w500, + FontStyle.italic); } case 'Validated': { return isOwner ? _showText('Membre validé !', 18, true) - : _duniterIndexer.getNameByAddress(context, address, null, 20, true, - Colors.black, FontWeight.w600, FontStyle.normal); + : _duniterIndexer.getNameByAddress( + context, + address, + null, + 20, + true, + Colors.black, + FontWeight.w600, + FontStyle.normal); } case 'expired': @@ -431,8 +445,6 @@ DuniterIndexer _duniterIndexer = return _address; } - - Widget walletNameController(BuildContext context, WalletData wallet, [double size = 20]) { // WidgetsBinding.instance.addPostFrameCallback((_) { diff --git a/lib/screens/common_elements.dart b/lib/screens/common_elements.dart index dd1c1ff..ca12fa7 100644 --- a/lib/screens/common_elements.dart +++ b/lib/screens/common_elements.dart @@ -306,7 +306,6 @@ Future infoPopup(BuildContext context, String title) async { ); } - // Widget geckoAppBar() { // return AppBar( // toolbarHeight: 60 * ratio, diff --git a/lib/screens/onBoarding/7.dart b/lib/screens/onBoarding/7.dart index 676331a..71c3c99 100644 --- a/lib/screens/onBoarding/7.dart +++ b/lib/screens/onBoarding/7.dart @@ -6,7 +6,8 @@ import 'package:gecko/screens/common_elements.dart'; import 'package:gecko/screens/onBoarding/8.dart'; class OnboardingStepSeven extends StatelessWidget { - const OnboardingStepSeven({Key? key, this.scanDerivation = false}) : super(key: key); + const OnboardingStepSeven({Key? key, this.scanDerivation = false}) + : super(key: key); final bool scanDerivation; @override diff --git a/lib/screens/template_screen.dart b/lib/screens/template_screen.dart index 84bc711..488dda1 100644 --- a/lib/screens/template_screen.dart +++ b/lib/screens/template_screen.dart @@ -11,8 +11,7 @@ class TemplateScreen extends StatelessWidget { // HomeProvider _homeProvider = Provider.of(context); return Scaffold( - backgroundColor: backgroundColor, - + backgroundColor: backgroundColor, appBar: AppBar( toolbarHeight: 60 * ratio, title: const SizedBox(