Skip to content
Snippets Groups Projects
Commit e90e3063 authored by poka's avatar poka
Browse files

fix flutter format

parent 58b6fba7
No related branches found
No related tags found
No related merge requests found
Pipeline #16103 failed
...@@ -128,9 +128,9 @@ class WalletOptionsProvider with ChangeNotifier { ...@@ -128,9 +128,9 @@ class WalletOptionsProvider with ChangeNotifier {
Widget idtyStatus(BuildContext context, String address, Widget idtyStatus(BuildContext context, String address,
{bool isOwner = false, Color color = Colors.black}) { {bool isOwner = false, Color color = Colors.black}) {
DuniterIndexer _duniterIndexer = DuniterIndexer _duniterIndexer =
Provider.of<DuniterIndexer>(context, listen: false); Provider.of<DuniterIndexer>(context, listen: false);
_showText(String text, _showText(String text,
[double size = 18, bool _bold = false, bool smooth = true]) { [double size = 18, bool _bold = false, bool smooth = true]) {
log.d(text); log.d(text);
...@@ -176,16 +176,30 @@ DuniterIndexer _duniterIndexer = ...@@ -176,16 +176,30 @@ DuniterIndexer _duniterIndexer =
{ {
return isOwner return isOwner
? _showText('Identité confirmé') ? _showText('Identité confirmé')
: _duniterIndexer.getNameByAddress(context, address, null, 20, true, : _duniterIndexer.getNameByAddress(
Colors.grey[700]!, FontWeight.w500, FontStyle.italic); context,
address,
null,
20,
true,
Colors.grey[700]!,
FontWeight.w500,
FontStyle.italic);
} }
case 'Validated': case 'Validated':
{ {
return isOwner return isOwner
? _showText('Membre validé !', 18, true) ? _showText('Membre validé !', 18, true)
: _duniterIndexer.getNameByAddress(context, address, null, 20, true, : _duniterIndexer.getNameByAddress(
Colors.black, FontWeight.w600, FontStyle.normal); context,
address,
null,
20,
true,
Colors.black,
FontWeight.w600,
FontStyle.normal);
} }
case 'expired': case 'expired':
...@@ -431,8 +445,6 @@ DuniterIndexer _duniterIndexer = ...@@ -431,8 +445,6 @@ DuniterIndexer _duniterIndexer =
return _address; return _address;
} }
Widget walletNameController(BuildContext context, WalletData wallet, Widget walletNameController(BuildContext context, WalletData wallet,
[double size = 20]) { [double size = 20]) {
// WidgetsBinding.instance.addPostFrameCallback((_) { // WidgetsBinding.instance.addPostFrameCallback((_) {
......
...@@ -306,7 +306,6 @@ Future<void> infoPopup(BuildContext context, String title) async { ...@@ -306,7 +306,6 @@ Future<void> infoPopup(BuildContext context, String title) async {
); );
} }
// Widget geckoAppBar() { // Widget geckoAppBar() {
// return AppBar( // return AppBar(
// toolbarHeight: 60 * ratio, // toolbarHeight: 60 * ratio,
......
...@@ -6,7 +6,8 @@ import 'package:gecko/screens/common_elements.dart'; ...@@ -6,7 +6,8 @@ import 'package:gecko/screens/common_elements.dart';
import 'package:gecko/screens/onBoarding/8.dart'; import 'package:gecko/screens/onBoarding/8.dart';
class OnboardingStepSeven extends StatelessWidget { 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; final bool scanDerivation;
@override @override
......
...@@ -11,8 +11,7 @@ class TemplateScreen extends StatelessWidget { ...@@ -11,8 +11,7 @@ class TemplateScreen extends StatelessWidget {
// HomeProvider _homeProvider = Provider.of<HomeProvider>(context); // HomeProvider _homeProvider = Provider.of<HomeProvider>(context);
return Scaffold( return Scaffold(
backgroundColor: backgroundColor, backgroundColor: backgroundColor,
appBar: AppBar( appBar: AppBar(
toolbarHeight: 60 * ratio, toolbarHeight: 60 * ratio,
title: const SizedBox( title: const SizedBox(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment