From 6ad3f1ff5a4e0fd901442c2e1be7e145a1ce59e3 Mon Sep 17 00:00:00 2001 From: Matthew Patrick Date: Wed, 25 May 2022 21:24:37 +0700 Subject: [PATCH] home - Added AboutUs Button on appBar --- lib/screens/home.dart | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/screens/home.dart b/lib/screens/home.dart index 68fc1c5..6e25ea2 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -6,6 +6,7 @@ import 'package:nekoya_flutter/components/new_arrival_products.dart'; import 'package:nekoya_flutter/components/newsletter.dart'; import 'package:nekoya_flutter/components/popular_products.dart'; import 'package:nekoya_flutter/components/search_form.dart'; +import 'package:nekoya_flutter/screens/about_us.dart'; import 'package:nekoya_flutter/screens/faq.dart'; import 'package:nekoya_flutter/utils/utils.dart'; @@ -21,14 +22,21 @@ class Home extends StatelessWidget { centerTitle: true, backgroundColor: const Color(0xff212226), automaticallyImplyLeading: false, + leading: IconButton( + icon: const Icon(Icons.question_mark), + onPressed: () { + Navigator.push( + context, MaterialPageRoute(builder: (context) => const FAQ())); + }, + ), actions: [ IconButton( - icon: const Icon(Icons.question_mark), + icon: const Icon(Icons.tips_and_updates), onPressed: () { Navigator.push(context, - MaterialPageRoute(builder: (context) => const FAQ())); + MaterialPageRoute(builder: (context) => const AboutUs())); }, - ) + ), ], ), body: SafeArea(