fix: Expanded flex bottomBar

This commit is contained in:
poka 2022-05-27 17:49:02 +02:00
parent 79e0773820
commit 7ae1d2ecd2
3 changed files with 57 additions and 60 deletions

View File

@ -149,19 +149,18 @@ class HomeProvider with ChangeNotifier {
color: yellowC,
width: double.infinity,
height: 80,
child: Expanded(
child: Row(
// mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
const Spacer(flex: 1),
IconButton(
iconSize: 50,
iconSize: 40,
icon: const Image(image: AssetImage('assets/loupe-noire.png')),
onPressed: () {
Navigator.popUntil(
context,
ModalRoute.withName('/'),
);
// Navigator.popUntil(
// context,
// ModalRoute.withName('/'),
// );
Navigator.push(
context,
MaterialPageRoute(builder: (context) {
@ -174,13 +173,12 @@ class HomeProvider with ChangeNotifier {
const Spacer(flex: 2),
IconButton(
iconSize: 60,
icon: const Image(
image: AssetImage('assets/qrcode-scan.png'), height: 50),
icon: const Image(image: AssetImage('assets/qrcode-scan.png')),
onPressed: () async {
Navigator.popUntil(
context,
ModalRoute.withName('/'),
);
// Navigator.popUntil(
// context,
// ModalRoute.withName('/'),
// );
await _historyProvider.scan(context);
},
),
@ -208,7 +206,6 @@ class HomeProvider with ChangeNotifier {
],
),
),
),
);
}

View File

@ -56,7 +56,7 @@ class WalletsHome extends StatelessWidget {
style: TextStyle(color: Colors.grey[850])),
backgroundColor: const Color(0xffFFD58D),
),
bottomNavigationBar: _homeProvider.bottomAppBar(context, 2),
bottomNavigationBar: _homeProvider.bottomAppBar(context, 3),
body: SafeArea(
child: myWalletsTiles(context, _currentChestNumber!),
),

View File

@ -5,7 +5,7 @@ description: Pay with G1.
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 0.0.6+6
version: 0.0.6+7
environment:
sdk: '>=2.12.0 <3.0.0'