fix flutter format
This commit is contained in:
parent
8555c579bd
commit
ad1a517553
|
@ -107,8 +107,7 @@ Future<void> main() async {
|
||||||
appRunner: () => runApp(
|
appRunner: () => runApp(
|
||||||
EasyLocalization(
|
EasyLocalization(
|
||||||
supportedLocales: const [Locale('en'), Locale('fr')],
|
supportedLocales: const [Locale('en'), Locale('fr')],
|
||||||
path:
|
path: 'assets/translations',
|
||||||
'assets/translations', // <-- change the path of the translation files
|
|
||||||
fallbackLocale: const Locale('en'),
|
fallbackLocale: const Locale('en'),
|
||||||
child: Gecko(indexerEndpoint),
|
child: Gecko(indexerEndpoint),
|
||||||
),
|
),
|
||||||
|
|
|
@ -120,7 +120,8 @@ class SubstrateSdk with ChangeNotifier {
|
||||||
// currencyName = await getCurencyName();
|
// currencyName = await getCurencyName();
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
_homeProvider.changeMessage(
|
_homeProvider.changeMessage(
|
||||||
"wellConnectedToNode".tr(args: [getConnectedEndpoint()!.split('/')[2]]),
|
"wellConnectedToNode"
|
||||||
|
.tr(args: [getConnectedEndpoint()!.split('/')[2]]),
|
||||||
5);
|
5);
|
||||||
// snackNode(ctx, true);
|
// snackNode(ctx, true);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -164,9 +164,7 @@ class WalletOptionsProvider with ChangeNotifier {
|
||||||
return isOwner
|
return isOwner
|
||||||
? InkWell(
|
? InkWell(
|
||||||
child: _showText(
|
child: _showText(
|
||||||
'clickHereToConfirmIdentity'.tr(),
|
'clickHereToConfirmIdentity'.tr(), 18, true),
|
||||||
18,
|
|
||||||
true),
|
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
await validateIdentity(context);
|
await validateIdentity(context);
|
||||||
},
|
},
|
||||||
|
|
|
@ -127,14 +127,13 @@ class WalletsProfilesProvider with ChangeNotifier {
|
||||||
return _balance;
|
return _balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Widget headerProfileView(
|
||||||
Widget headerProfileView(
|
|
||||||
BuildContext context, String _address, String? username) {
|
BuildContext context, String _address, String? username) {
|
||||||
const double _avatarSize = 140;
|
const double _avatarSize = 140;
|
||||||
|
|
||||||
WalletOptionsProvider _walletOptions =
|
WalletOptionsProvider _walletOptions =
|
||||||
Provider.of<WalletOptionsProvider>(context, listen: false);
|
Provider.of<WalletOptionsProvider>(context, listen: false);
|
||||||
CesiumPlusProvider _cesiumPlusProvider =
|
CesiumPlusProvider _cesiumPlusProvider =
|
||||||
Provider.of<CesiumPlusProvider>(context, listen: false);
|
Provider.of<CesiumPlusProvider>(context, listen: false);
|
||||||
// SubstrateSdk _sub = Provider.of<SubstrateSdk>(context, listen: false);
|
// SubstrateSdk _sub = Provider.of<SubstrateSdk>(context, listen: false);
|
||||||
|
|
||||||
|
@ -182,13 +181,11 @@ Widget headerProfileView(
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
const SizedBox(height: 25),
|
const SizedBox(height: 25),
|
||||||
|
|
||||||
balance(context, _address, 22),
|
balance(context, _address, 22),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
_walletOptions.idtyStatus(context, _address,
|
_walletOptions.idtyStatus(context, _address,
|
||||||
isOwner: false, color: Colors.black),
|
isOwner: false, color: Colors.black),
|
||||||
getCerts(context, _address, 14),
|
getCerts(context, _address, 14),
|
||||||
|
|
||||||
if (username == null &&
|
if (username == null &&
|
||||||
g1WalletsBox.get(_address)?.username != null)
|
g1WalletsBox.get(_address)?.username != null)
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
@ -216,10 +213,9 @@ Widget headerProfileView(
|
||||||
]),
|
]),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Column(children: <Widget>[
|
Column(children: <Widget>[
|
||||||
ClipOval(
|
ClipOval(
|
||||||
child: _cesiumPlusProvider.defaultAvatar(_avatarSize),
|
child: _cesiumPlusProvider.defaultAvatar(_avatarSize),
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(height: 25),
|
const SizedBox(height: 25),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
|
@ -228,8 +224,6 @@ Widget headerProfileView(
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void reload() {
|
void reload() {
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
@ -240,6 +234,6 @@ snackCopyKey(context) {
|
||||||
padding: const EdgeInsets.all(20),
|
padding: const EdgeInsets.all(20),
|
||||||
content: Text("thisAddressHasBeenCopiedToClipboard".tr(),
|
content: Text("thisAddressHasBeenCopiedToClipboard".tr(),
|
||||||
style: const TextStyle(fontSize: 16)),
|
style: const TextStyle(fontSize: 16)),
|
||||||
duration: const Duration(seconds: 2));
|
duration: const Duration(seconds: 2));
|
||||||
ScaffoldMessenger.of(context).showSnackBar(snackBar);
|
ScaffoldMessenger.of(context).showSnackBar(snackBar);
|
||||||
}
|
}
|
||||||
|
|
|
@ -554,8 +554,8 @@ Widget welcomeHome(context) {
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'createWallet'.tr(),
|
'createWallet'.tr(),
|
||||||
style:
|
style: const TextStyle(
|
||||||
const TextStyle(fontSize: 24, fontWeight: FontWeight.w600),
|
fontSize: 24, fontWeight: FontWeight.w600),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -61,8 +61,8 @@ class ChooseWalletScreen extends StatelessWidget {
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'chooseThisWallet'.tr(),
|
'chooseThisWallet'.tr(),
|
||||||
style:
|
style: const TextStyle(
|
||||||
const TextStyle(fontSize: 24, fontWeight: FontWeight.w600),
|
fontSize: 24, fontWeight: FontWeight.w600),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -125,8 +125,8 @@ class _CustomDerivationState extends State<CustomDerivation> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_pin != null || _myWalletProvider.pinCode != '') {
|
if (_pin != null || _myWalletProvider.pinCode != '') {
|
||||||
String _newDerivationName =
|
String _newDerivationName = 'wallet'.tr() +
|
||||||
'wallet'.tr() + ' ${_myWalletProvider.listWallets.last.number! + 2}';
|
' ${_myWalletProvider.listWallets.last.number! + 2}';
|
||||||
if (dropdownValue == 'root') {
|
if (dropdownValue == 'root') {
|
||||||
await _myWalletProvider.generateRootWallet(
|
await _myWalletProvider.generateRootWallet(
|
||||||
context, 'Portefeuille racine');
|
context, 'Portefeuille racine');
|
||||||
|
@ -149,7 +149,8 @@ class _CustomDerivationState extends State<CustomDerivation> {
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'validate'.tr(),
|
'validate'.tr(),
|
||||||
style: const TextStyle(fontSize: 24, fontWeight: FontWeight.w600),
|
style: const TextStyle(
|
||||||
|
fontSize: 24, fontWeight: FontWeight.w600),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -353,7 +353,8 @@ class WalletOptions extends StatelessWidget {
|
||||||
),
|
),
|
||||||
const SizedBox(width: 22),
|
const SizedBox(width: 22),
|
||||||
Text("displayActivity".tr(),
|
Text("displayActivity".tr(),
|
||||||
style: const TextStyle(fontSize: 20, fontWeight: FontWeight.w500)),
|
style:
|
||||||
|
const TextStyle(fontSize: 20, fontWeight: FontWeight.w500)),
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -32,9 +32,7 @@ class OnboardingStepThree extends StatelessWidget {
|
||||||
child: common.infoIntro(
|
child: common.infoIntro(
|
||||||
context,
|
context,
|
||||||
<TextSpan>[
|
<TextSpan>[
|
||||||
TextSpan(
|
TextSpan(text: 'warningForgotPassword'.tr()),
|
||||||
text:
|
|
||||||
'warningForgotPassword'.tr()),
|
|
||||||
],
|
],
|
||||||
'forgot_password.png'.tr(),
|
'forgot_password.png'.tr(),
|
||||||
'>',
|
'>',
|
||||||
|
|
Loading…
Reference in New Issue