From 900c49e6147254cadf17f30944ea5b5d0dd219bf Mon Sep 17 00:00:00 2001 From: Yan Maniez Date: Sat, 22 Feb 2020 03:22:41 +0100 Subject: [PATCH] Tests --- aidedejeu_flutter/lib/main.dart | 27 ++++++++++++++++++++++----- aidedejeu_flutter/pubspec.yaml | 2 +- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/aidedejeu_flutter/lib/main.dart b/aidedejeu_flutter/lib/main.dart index eff40ca2..bd5f7d1e 100644 --- a/aidedejeu_flutter/lib/main.dart +++ b/aidedejeu_flutter/lib/main.dart @@ -11,9 +11,9 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( - title: 'Flutter Demo', + title: 'Haches & Dés', theme: ThemeData( - primarySwatch: Colors.red, + primarySwatch: Colors.deepOrange, ), home: MyHomePage(id: 'index.md'), ); @@ -178,9 +178,9 @@ class _MyHomePageState extends State { } return Scaffold( - appBar: AppBar( - title: Text(widget.id), - ), + //appBar: AppBar( + // title: Text(widget.id), + //), body: currentPage, bottomNavigationBar: BottomNavigationBar( currentIndex: indexPage, @@ -241,6 +241,23 @@ class _MyHomePageState extends State { ], ), ), + appBar: AppBar( + title: Text(widget.id), + actions: [ + Builder( + builder: (context) => IconButton( + icon: SvgPicture.asset( + "assets/funnel.svg", + height: 30.0, + width: 30.0, + allowDrawingOutsideViewBox: true, + ), //Icon(Icons.filter), + onPressed: () => Scaffold.of(context).openEndDrawer(), + tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip, + ), + ), + ], + ), ); } } diff --git a/aidedejeu_flutter/pubspec.yaml b/aidedejeu_flutter/pubspec.yaml index a5c5f30e..483dcf8c 100644 --- a/aidedejeu_flutter/pubspec.yaml +++ b/aidedejeu_flutter/pubspec.yaml @@ -1,5 +1,5 @@ name: aidedejeu_flutter -description: A new Flutter application. +description: Haches & Dés version flutter # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43