49 lines
1.7 KiB
Dart
49 lines
1.7 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:nest_grocery_app/widgets/footer.dart';
|
|
import 'package:nest_grocery_app/widgets/top_selling.dart';
|
|
import '../../widgets/app_bar_widget.dart';
|
|
import '../../widgets/featured_categories_widget.dart';
|
|
import '../../widgets/hero_banner_widget.dart';
|
|
import '../../widgets/popular_products_widget.dart';
|
|
import '../../widgets/promo_banners_widget.dart';
|
|
import '../../widgets/daily_best_sells_widget.dart';
|
|
import '../../widgets/deal_of_the_day.dart';
|
|
import '../../widgets/feature.dart';
|
|
import '../../widgets/footer.dart';
|
|
|
|
|
|
class HomeScreen extends StatelessWidget {
|
|
const HomeScreen({super.key});
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: const AppBarWidget(),
|
|
body: SingleChildScrollView(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
const HeroBannerWidget(),
|
|
const SizedBox(height: 20),
|
|
const FeaturedCategoriesWidget(),
|
|
const SizedBox(height: 20),
|
|
const SizedBox(width:60),
|
|
const PromoBannersWidget(),
|
|
const SizedBox(height: 20),
|
|
const PopularProductsWidget(),
|
|
const SizedBox(height: 40),
|
|
const SizedBox(width: 40),
|
|
const DailyBestSellsWidget(),
|
|
const SizedBox(height: 40),
|
|
const DealOfTheDay(),
|
|
const TopSellingAndTrending(),
|
|
const SizedBox(height: 20),
|
|
...features.map((feature) => FeatureCard(feature: feature)).toList(),
|
|
const SizedBox(height: 40),
|
|
const Footer()
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|