home - Added AboutUs Button on appBar

This commit is contained in:
Matthew Patrick 2022-05-25 21:24:37 +07:00
parent 5883059a87
commit 6ad3f1ff5a

View file

@ -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/newsletter.dart';
import 'package:nekoya_flutter/components/popular_products.dart'; import 'package:nekoya_flutter/components/popular_products.dart';
import 'package:nekoya_flutter/components/search_form.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/screens/faq.dart';
import 'package:nekoya_flutter/utils/utils.dart'; import 'package:nekoya_flutter/utils/utils.dart';
@ -21,14 +22,21 @@ class Home extends StatelessWidget {
centerTitle: true, centerTitle: true,
backgroundColor: const Color(0xff212226), backgroundColor: const Color(0xff212226),
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
actions: [ leading: IconButton(
IconButton(
icon: const Icon(Icons.question_mark), icon: const Icon(Icons.question_mark),
onPressed: () { onPressed: () {
Navigator.push(context, Navigator.push(
MaterialPageRoute(builder: (context) => const FAQ())); context, MaterialPageRoute(builder: (context) => const FAQ()));
}, },
) ),
actions: [
IconButton(
icon: const Icon(Icons.tips_and_updates),
onPressed: () {
Navigator.push(context,
MaterialPageRoute(builder: (context) => const AboutUs()));
},
),
], ],
), ),
body: SafeArea( body: SafeArea(