app/lib/screens/home_screen.dart
2022-05-13 12:58:11 +07:00

71 lines
2.2 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:nekoya_flutter/utils/utils.dart';
import 'package:nekoya_flutter/components/categories.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';
class HomeScreen extends StatelessWidget {
const HomeScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xff1b1c1e),
appBar: AppBar(
backgroundColor: const Color(0xff212226),
leading: IconButton(
onPressed: () {},
icon: SvgPicture.asset("assets/icons/menu.svg"),
),
title: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const SizedBox(width: defaultPadding / 2),
Text(
"Nekoya",
style: TextStyle(fontSize: 20.0, color: Colors.white),
),
],
),
actions: [
IconButton(
icon: SvgPicture.asset("assets/icons/Notification.svg"),
color: Colors.white,
onPressed: () {},
),
],
),
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!
.copyWith(fontWeight: FontWeight.w500, color: Colors.white),
),
const Text(
"best Outfits for you",
style: TextStyle(fontSize: 18, color: Colors.white),
),
const Padding(
padding: EdgeInsets.symmetric(vertical: defaultPadding),
child: SearchForm(),
),
const Categories(),
const NewArrivalProducts(),
const PopularProducts(),
],
),
),
);
}
}