From b63f39af8c991e9cdbc5ff8f960f6bc9dd2ad222 Mon Sep 17 00:00:00 2001 From: Yan Maniez Date: Thu, 20 Feb 2020 17:39:31 +0100 Subject: [PATCH] Test --- aidedejeu_flutter/lib/main.dart | 42 ++++++++++++++------------------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/aidedejeu_flutter/lib/main.dart b/aidedejeu_flutter/lib/main.dart index a7781cf2..e6bf9cf4 100644 --- a/aidedejeu_flutter/lib/main.dart +++ b/aidedejeu_flutter/lib/main.dart @@ -145,27 +145,6 @@ class _MyHomePageState extends State { return item; } - final Widget svgLibrary = SvgPicture.asset( - "assets/spell-book.svg", - height: 20.0, - width: 20.0, - allowDrawingOutsideViewBox: true, - ); - - final Widget svgBookmarks = SvgPicture.asset( - "assets/stars-stack.svg", - height: 20.0, - width: 20.0, - allowDrawingOutsideViewBox: true, - ); - - final Widget svgSearch = SvgPicture.asset( - "assets/crystal-ball.svg", - height: 20.0, - width: 20.0, - allowDrawingOutsideViewBox: true, - ); - Widget buildMarkdown(BuildContext context) { return Markdown( data: markdown, @@ -231,16 +210,31 @@ class _MyHomePageState extends State { bottomNavigationBar: BottomNavigationBar( items: [ BottomNavigationBarItem( - icon: svgLibrary, // Icon(Icons.home), + icon: SvgPicture.asset( + "assets/spell-book.svg", + height: 40.0, + width: 40.0, + allowDrawingOutsideViewBox: true, + ), // Icon(Icons.home), title: Text('Bibliothèque'), ), BottomNavigationBarItem( - icon: svgBookmarks, // Icon(Icons.business), + icon: SvgPicture.asset( + "assets/stars-stack.svg", + height: 40.0, + width: 40.0, + allowDrawingOutsideViewBox: true, + ), // Icon(Icons.business), title: Text('Favoris'), ), BottomNavigationBarItem( //icon: Icon(Icons.business), - icon: svgSearch, + icon: SvgPicture.asset( + "assets/crystal-ball.svg", + height: 40.0, + width: 40.0, + allowDrawingOutsideViewBox: true, + ), title: Text('Recherche'), //activeIcon: Icon(Icons.category, color: Color(0xFFEF5123)), ),