fix flutter format

This commit is contained in:
poka 2022-06-14 22:10:35 +02:00
parent 58b6fba7ef
commit e90e3063ae
4 changed files with 23 additions and 12 deletions

View File

@ -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<DuniterIndexer>(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((_) {

View File

@ -306,7 +306,6 @@ Future<void> infoPopup(BuildContext context, String title) async {
);
}
// Widget geckoAppBar() {
// return AppBar(
// toolbarHeight: 60 * ratio,

View File

@ -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

View File

@ -11,8 +11,7 @@ class TemplateScreen extends StatelessWidget {
// HomeProvider _homeProvider = Provider.of<HomeProvider>(context);
return Scaffold(
backgroundColor: backgroundColor,
backgroundColor: backgroundColor,
appBar: AppBar(
toolbarHeight: 60 * ratio,
title: const SizedBox(