cleaning code
This commit is contained in:
parent
5aab5bb385
commit
df84eb7a48
|
@ -211,88 +211,6 @@ class HomeProvider with ChangeNotifier {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// BottomAppBar bottomAppBar(BuildContext context, int index) {
|
|
||||||
// MyWalletsProvider _myWalletProvider =
|
|
||||||
// Provider.of<MyWalletsProvider>(context, listen: false);
|
|
||||||
|
|
||||||
// return BottomAppBar(
|
|
||||||
// color: yellowC,
|
|
||||||
// notchMargin: 0, //not
|
|
||||||
// child: SizedBox(
|
|
||||||
// height: 70,
|
|
||||||
// child: Row(
|
|
||||||
// children: [
|
|
||||||
// const Spacer(flex: 1),
|
|
||||||
// IconButton(
|
|
||||||
// iconSize: 50,
|
|
||||||
// icon: const Image(image: AssetImage('assets/loupe-noire.png')),
|
|
||||||
// onPressed: () {
|
|
||||||
// Navigator.popUntil(
|
|
||||||
// context,
|
|
||||||
// ModalRoute.withName('/'),
|
|
||||||
// );
|
|
||||||
// Navigator.push(
|
|
||||||
// context,
|
|
||||||
// MaterialPageRoute(builder: (context) {
|
|
||||||
// return const SearchScreen();
|
|
||||||
// }),
|
|
||||||
// );
|
|
||||||
// },
|
|
||||||
// ),
|
|
||||||
// const Spacer(flex: 4),
|
|
||||||
// IconButton(
|
|
||||||
// iconSize: 60,
|
|
||||||
// icon: const Image(image: AssetImage('assets/wallet.png')),
|
|
||||||
// onPressed: () {
|
|
||||||
// WalletData? defaultWallet =
|
|
||||||
// _myWalletProvider.getDefaultWallet();
|
|
||||||
// Navigator.push(
|
|
||||||
// context,
|
|
||||||
// MaterialPageRoute(
|
|
||||||
// builder: (context) {
|
|
||||||
// return UnlockingWallet(
|
|
||||||
// wallet: defaultWallet,
|
|
||||||
// action: "mywallets",
|
|
||||||
// );
|
|
||||||
// },
|
|
||||||
// ),
|
|
||||||
// );
|
|
||||||
// },
|
|
||||||
// ),
|
|
||||||
// const Spacer(flex: 1),
|
|
||||||
// ],
|
|
||||||
// )),
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Widget floatingAction(BuildContext context, index) {
|
|
||||||
// WalletsProfilesProvider _historyProvider =
|
|
||||||
// Provider.of<WalletsProfilesProvider>(context, listen: false);
|
|
||||||
// return SizedBox(
|
|
||||||
// height: 90,
|
|
||||||
// width: 90,
|
|
||||||
// child: FittedBox(
|
|
||||||
// child: FloatingActionButton(
|
|
||||||
// // shape: const RoundedRectangleBorder(
|
|
||||||
// // borderRadius: BorderRadius.all(Radius.elliptical(150, 100)),
|
|
||||||
// // ),
|
|
||||||
// backgroundColor: yellowC,
|
|
||||||
// elevation: 0,
|
|
||||||
// onPressed: () async {
|
|
||||||
// Navigator.popUntil(
|
|
||||||
// context,
|
|
||||||
// ModalRoute.withName('/'),
|
|
||||||
// );
|
|
||||||
// await _historyProvider.scan(context);
|
|
||||||
// },
|
|
||||||
// child: const Image(
|
|
||||||
// image: AssetImage('assets/qrcode-scan.png'),
|
|
||||||
// height: 35), //icon inside button
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
|
|
||||||
void handleSearchEnd() {
|
void handleSearchEnd() {
|
||||||
searchIcon = Icon(
|
searchIcon = Icon(
|
||||||
Icons.search,
|
Icons.search,
|
||||||
|
|
|
@ -192,59 +192,23 @@ class FaderTransition extends PageRouteBuilder {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class SlideLeftRoute extends PageRouteBuilder {
|
// Widget geckoAppBar() {
|
||||||
final Widget? page;
|
// return AppBar(
|
||||||
SlideLeftRoute({this.page})
|
// toolbarHeight: 60 * ratio,
|
||||||
: super(
|
// elevation: 0,
|
||||||
pageBuilder: (
|
// leading: IconButton(
|
||||||
BuildContext context,
|
// icon: const Icon(Icons.arrow_back, color: Colors.black),
|
||||||
Animation<double> animation,
|
// onPressed: () {
|
||||||
Animation<double> secondaryAnimation,
|
// _walletOptions.isEditing = false;
|
||||||
) =>
|
// _walletOptions.isBalanceBlur = false;
|
||||||
page!,
|
// Navigator.pop(context);
|
||||||
transitionsBuilder: (
|
// }),
|
||||||
BuildContext context,
|
// title: SizedBox(
|
||||||
Animation<double> animation,
|
// height: 22,
|
||||||
Animation<double> secondaryAnimation,
|
// child: Consumer<WalletOptionsProvider>(
|
||||||
Widget child,
|
// builder: (context, walletProvider, _) {
|
||||||
) =>
|
// return Text(_walletOptions.nameController.text);
|
||||||
SlideTransition(
|
// }),
|
||||||
position: Tween<Offset>(
|
// ),
|
||||||
begin: const Offset(1, 0),
|
// );
|
||||||
end: Offset.zero,
|
// }
|
||||||
).animate(animation),
|
|
||||||
child: child,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
class GeckoSpeechAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
||||||
@override
|
|
||||||
final Size preferredSize;
|
|
||||||
final String title;
|
|
||||||
|
|
||||||
GeckoSpeechAppBar(
|
|
||||||
this.title, {
|
|
||||||
Key? key,
|
|
||||||
}) : preferredSize = const Size.fromHeight(105.4),
|
|
||||||
super(key: key);
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return AppBar(
|
|
||||||
toolbarHeight: 60 * ratio,
|
|
||||||
leading: IconButton(
|
|
||||||
icon: SizedBox(
|
|
||||||
height: 30,
|
|
||||||
child: Image.asset('assets/onBoarding/gecko_bar.png')),
|
|
||||||
onPressed: () => Navigator.popUntil(
|
|
||||||
context,
|
|
||||||
ModalRoute.withName('/'),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
title: SizedBox(
|
|
||||||
height: 25,
|
|
||||||
child: Text(title),
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -30,7 +30,9 @@ class OnboardingStepThree extends StatelessWidget {
|
||||||
child: common.infoIntro(
|
child: common.infoIntro(
|
||||||
context,
|
context,
|
||||||
<TextSpan>[
|
<TextSpan>[
|
||||||
const TextSpan(text: 'Dans une blockchain, pas de procédure de récupération par mail. Seule votre phrase de restauration peut vous permettre de récupérer vos Ğ1 à tout moment.'),
|
const TextSpan(
|
||||||
|
text:
|
||||||
|
'Dans une blockchain, pas de procédure de récupération par mail. Seule votre phrase de restauration peut vous permettre de récupérer vos Ğ1 à tout moment.'),
|
||||||
],
|
],
|
||||||
'mot-de-passe-oublie.png',
|
'mot-de-passe-oublie.png',
|
||||||
'>',
|
'>',
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// ignore_for_file: file_names
|
// ignore_for_file: file_names
|
||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:gecko/globals.dart';
|
import 'package:gecko/globals.dart';
|
||||||
|
|
|
@ -28,6 +28,7 @@ class SearchResultScreen extends StatelessWidget {
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
|
elevation: 1,
|
||||||
toolbarHeight: 60 * ratio,
|
toolbarHeight: 60 * ratio,
|
||||||
title: const SizedBox(
|
title: const SizedBox(
|
||||||
height: 22,
|
height: 22,
|
||||||
|
@ -126,9 +127,7 @@ class SearchResultScreen extends StatelessWidget {
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
title: Row(children: <Widget>[
|
title: Row(children: <Widget>[
|
||||||
Text(
|
Text(getShortPubkey(g1Wallet.pubkey!),
|
||||||
|
|
||||||
getShortPubkey(g1Wallet.pubkey!),
|
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontFamily: 'Monospace',
|
fontFamily: 'Monospace',
|
||||||
|
|
Loading…
Reference in New Issue