2022-05-13 06:02:53 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2022-05-16 02:51:47 +02:00
|
|
|
import 'package:nekoya_flutter/components/bannerimage.dart';
|
2022-05-15 17:21:27 +02:00
|
|
|
import 'package:nekoya_flutter/components/carousel.dart';
|
2022-05-13 06:02:53 +02:00
|
|
|
import 'package:nekoya_flutter/components/new_arrival_products.dart';
|
2022-05-16 09:20:27 +02:00
|
|
|
import 'package:nekoya_flutter/components/newsletter.dart';
|
2022-05-13 06:02:53 +02:00
|
|
|
import 'package:nekoya_flutter/components/popular_products.dart';
|
|
|
|
import 'package:nekoya_flutter/components/search_form.dart';
|
2022-05-25 16:24:37 +02:00
|
|
|
import 'package:nekoya_flutter/screens/about_us.dart';
|
2022-05-25 16:14:08 +02:00
|
|
|
import 'package:nekoya_flutter/screens/faq.dart';
|
2022-05-16 02:51:47 +02:00
|
|
|
import 'package:nekoya_flutter/utils/utils.dart';
|
2022-05-13 06:02:53 +02:00
|
|
|
|
2022-05-14 18:52:16 +02:00
|
|
|
class Home extends StatelessWidget {
|
|
|
|
const Home({Key? key}) : super(key: key);
|
2022-05-13 06:02:53 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
2022-05-13 07:58:11 +02:00
|
|
|
backgroundColor: const Color(0xff1b1c1e),
|
2022-05-13 06:02:53 +02:00
|
|
|
appBar: AppBar(
|
2022-05-14 19:19:49 +02:00
|
|
|
title: const Text('Nekoya'),
|
|
|
|
centerTitle: true,
|
2022-05-13 07:58:11 +02:00
|
|
|
backgroundColor: const Color(0xff212226),
|
2022-05-16 05:17:39 +02:00
|
|
|
automaticallyImplyLeading: false,
|
2022-05-25 16:24:37 +02:00
|
|
|
leading: IconButton(
|
|
|
|
icon: const Icon(Icons.question_mark),
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.push(
|
|
|
|
context, MaterialPageRoute(builder: (context) => const FAQ()));
|
|
|
|
},
|
|
|
|
),
|
2022-05-25 16:14:08 +02:00
|
|
|
actions: [
|
|
|
|
IconButton(
|
2022-05-25 19:28:19 +02:00
|
|
|
icon: const Icon(Icons.info_outline),
|
2022-05-25 16:14:08 +02:00
|
|
|
onPressed: () {
|
|
|
|
Navigator.push(context,
|
2022-05-25 16:24:37 +02:00
|
|
|
MaterialPageRoute(builder: (context) => const AboutUs()));
|
2022-05-25 16:14:08 +02:00
|
|
|
},
|
2022-05-25 16:24:37 +02:00
|
|
|
),
|
2022-05-25 16:14:08 +02:00
|
|
|
],
|
2022-05-13 06:02:53 +02:00
|
|
|
),
|
2022-05-15 21:01:21 +02: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
|
|
|
|
.headline4!
|
|
|
|
.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 02:42:29 +02:00
|
|
|
const Carousel(),
|
2022-05-15 21:01:21 +02:00
|
|
|
const NewArrivalProducts(),
|
|
|
|
const SizedBox(
|
|
|
|
height: 15,
|
|
|
|
),
|
|
|
|
const Bannerimage(),
|
|
|
|
const PopularProducts(),
|
2022-05-16 09:20:27 +02:00
|
|
|
const Newsletter(),
|
2022-05-15 21:01:21 +02:00
|
|
|
],
|
|
|
|
),
|
2022-05-13 06:02:53 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|