2022-05-13 11:02:53 +07:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2023-09-22 14:29:07 +07:00
|
|
|
import 'package:nekoya_app/components/bannerimage.dart';
|
|
|
|
import 'package:nekoya_app/components/carousel.dart';
|
|
|
|
import 'package:nekoya_app/components/new_arrival_products.dart';
|
|
|
|
import 'package:nekoya_app/components/popular_products.dart';
|
|
|
|
import 'package:nekoya_app/components/search_form.dart';
|
|
|
|
import 'package:nekoya_app/screens/about_us.dart';
|
|
|
|
import 'package:nekoya_app/screens/faq.dart';
|
|
|
|
import 'package:nekoya_app/utils/utils.dart';
|
2022-05-13 11:02:53 +07:00
|
|
|
|
2022-05-14 23:52:16 +07:00
|
|
|
class Home extends StatelessWidget {
|
|
|
|
const Home({Key? key}) : super(key: key);
|
2022-05-13 11:02:53 +07:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
2022-05-13 12:58:11 +07:00
|
|
|
backgroundColor: const Color(0xff1b1c1e),
|
2022-05-13 11:02:53 +07:00
|
|
|
appBar: AppBar(
|
2022-05-15 00:19:49 +07:00
|
|
|
title: const Text('Nekoya'),
|
|
|
|
centerTitle: true,
|
2022-05-13 12:58:11 +07:00
|
|
|
backgroundColor: const Color(0xff212226),
|
2022-05-16 10:17:39 +07:00
|
|
|
automaticallyImplyLeading: false,
|
2022-05-25 21:24:37 +07:00
|
|
|
leading: IconButton(
|
|
|
|
icon: const Icon(Icons.question_mark),
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.push(
|
|
|
|
context, MaterialPageRoute(builder: (context) => const FAQ()));
|
|
|
|
},
|
|
|
|
),
|
2022-05-25 21:14:08 +07:00
|
|
|
actions: [
|
|
|
|
IconButton(
|
2022-05-26 00:28:19 +07:00
|
|
|
icon: const Icon(Icons.info_outline),
|
2022-05-25 21:14:08 +07:00
|
|
|
onPressed: () {
|
|
|
|
Navigator.push(context,
|
2022-05-25 21:24:37 +07:00
|
|
|
MaterialPageRoute(builder: (context) => const AboutUs()));
|
2022-05-25 21:14:08 +07:00
|
|
|
},
|
2022-05-25 21:24:37 +07:00
|
|
|
),
|
2022-05-25 21:14:08 +07:00
|
|
|
],
|
2022-05-13 11:02:53 +07:00
|
|
|
),
|
2022-05-16 02:01:21 +07:00
|
|
|
body: SafeArea(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
physics: const BouncingScrollPhysics(
|
|
|
|
parent: AlwaysScrollableScrollPhysics()),
|
|
|
|
padding: const EdgeInsets.all(defaultPadding),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
"Explore",
|
|
|
|
style: Theme.of(context)
|
|
|
|
.textTheme
|
2023-09-22 14:29:07 +07:00
|
|
|
.headlineMedium!
|
2022-05-16 02:01:21 +07:00
|
|
|
.copyWith(fontWeight: FontWeight.w500, color: Colors.white),
|
|
|
|
),
|
|
|
|
const Text(
|
|
|
|
"Best Looking Sneakers For You...",
|
|
|
|
style: TextStyle(fontSize: 18, color: Colors.white),
|
|
|
|
),
|
|
|
|
const Padding(
|
|
|
|
padding: EdgeInsets.symmetric(vertical: defaultPadding),
|
|
|
|
child: SearchForm(),
|
|
|
|
),
|
2022-05-16 07:42:29 +07:00
|
|
|
const Carousel(),
|
2022-05-16 02:01:21 +07:00
|
|
|
const NewArrivalProducts(),
|
|
|
|
const SizedBox(
|
|
|
|
height: 15,
|
|
|
|
),
|
|
|
|
const Bannerimage(),
|
2023-11-10 20:43:13 +07:00
|
|
|
const PopularProducts()
|
2022-05-16 02:01:21 +07:00
|
|
|
],
|
|
|
|
),
|
2022-05-13 11:02:53 +07:00
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|