app/lib/screens/home.dart

58 lines
1.8 KiB
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
2022-05-15 16:51:11 +02:00
import 'package:nekoya_flutter/components/bannerimage.dart';
import 'package:nekoya_flutter/utils/utils.dart';
2022-05-15 17:21:27 +02:00
import 'package:nekoya_flutter/components/carousel.dart';
import 'package:nekoya_flutter/components/new_arrival_products.dart';
import 'package:nekoya_flutter/components/popular_products.dart';
import 'package:nekoya_flutter/components/search_form.dart';
2022-05-14 18:52:16 +02:00
class Home extends StatelessWidget {
const Home({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
2022-05-13 07:58:11 +02:00
backgroundColor: const Color(0xff1b1c1e),
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),
),
body: 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!
2022-05-13 07:58:11 +02:00
.copyWith(fontWeight: FontWeight.w500, color: Colors.white),
),
const Text(
2022-05-15 20:51:40 +02:00
"Best Looking Sneakers For You...",
2022-05-13 07:58:11 +02:00
style: TextStyle(fontSize: 18, color: Colors.white),
),
const Padding(
padding: EdgeInsets.symmetric(vertical: defaultPadding),
child: SearchForm(),
),
2022-05-15 17:21:27 +02:00
Carousel(),
const NewArrivalProducts(),
2022-05-15 20:59:32 +02:00
const SizedBox(
height: 15,
),
2022-05-15 16:51:11 +02:00
const Bannerimage(),
const PopularProducts(),
],
),
),
);
}
}