Skip to content

Commit

Permalink
task: product categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Atuoha committed Sep 30, 2022
1 parent e63e934 commit 9b13f56
Show file tree
Hide file tree
Showing 70 changed files with 475 additions and 51 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/children/gown.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/children/inner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/children/jacket.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/children/jeans.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/children/joggers.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/men/coat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/men/jacket.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/men/jeans.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/men/shirt.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/men/short.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/men/suit.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/men/t-shirt.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/men/vest.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/others/bag.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/others/camera.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/others/gaming.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/others/headset.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/others/laptop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/others/watch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/sneakers/adidas.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/sneakers/fila.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/sneakers/nike.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/sneakers/reebok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sub_categories/women/cooperate.jpg
Binary file added assets/images/sub_categories/women/gown.jpg
Binary file added assets/images/sub_categories/women/sandals.jpg
85 changes: 85 additions & 0 deletions lib/views/main/categories/children.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import 'package:flutter/material.dart';

import '../../../constants/colors.dart';

class ChildrenCategories extends StatelessWidget {
const ChildrenCategories({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size;

final categories = [
'Jeans',
'Shirt',
'Inner',
'Jacket',
'Cardigan',
'Shirt',
'Joggers',
'T-shirt',
'Gown',
];

return Column(
children: [
const Padding(
padding: EdgeInsets.only(top: 10.0),
child: Text(
'Categories for children',
style: TextStyle(
fontWeight: FontWeight.w500,
fontSize: 18,
),
),
),
const SizedBox(height: 10),
SizedBox(
height: size.height * 0.73,
child: GridView.builder(
itemCount: categories.length,
padding: const EdgeInsets.only(top: 5),
itemBuilder: (context, index) => Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: primaryColor,
),
child: Column(
children: [
Container(
height: 115,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
image: DecorationImage(
image: AssetImage(
'assets/images/sub_categories/children/${categories[index].toLowerCase()}.jpg',
),
fit: BoxFit.cover),
),
),
const SizedBox(height: 2),
Text(
categories[index],
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
color: Colors.white,
),
),
],
),
),
),
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
mainAxisSpacing: 10,
crossAxisSpacing: 10,
crossAxisCount: 2,
),
),
),
],
);
}
}
85 changes: 85 additions & 0 deletions lib/views/main/categories/men.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import 'package:flutter/material.dart';

import '../../../constants/colors.dart';

class MenCategories extends StatelessWidget {
const MenCategories({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size;

final categories = [
'Jeans',
'Suit',
'Short',
'Jacket',
'Coat',
'Shirt',
'Vest',
'T-shirt',
];

return Column(
children: [
const Padding(
padding: EdgeInsets.only(top: 10.0),
child: Text(
'Categories for men',
style: TextStyle(
fontWeight: FontWeight.w500,
fontSize: 18,
),
),
),
const SizedBox(height: 10),
SizedBox(
height: size.height * 0.73,
child: GridView.builder(
itemCount: categories.length,
padding: const EdgeInsets.only(top: 5),
itemBuilder: (context, index) => Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: primaryColor,
),
child: Column(
children: [
Container(
height: 115,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
image: DecorationImage(
image: AssetImage(
'assets/images/sub_categories/men/${categories[index].toLowerCase()}.jpg',
),
fit: BoxFit.cover
),
),
),
const SizedBox(height: 2),
Text(
categories[index],
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
color: Colors.white,
),
),
],
),
),
),
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
mainAxisSpacing: 10,
crossAxisSpacing: 10,
crossAxisCount: 2,
),
),
),
],
);
}
}
83 changes: 83 additions & 0 deletions lib/views/main/categories/other.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import 'package:flutter/material.dart';

import '../../../constants/colors.dart';

class OtherCategories extends StatelessWidget {
const OtherCategories({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size;

final categories = [
'Headset',
'Laptop',
'Gaming',
'Camera',
'Bag',
'Watch',
];

return Column(
children: [
const Padding(
padding: EdgeInsets.only(top: 10.0),
child: Text(
'Other categories',
style: TextStyle(
fontWeight: FontWeight.w500,
fontSize: 18,
),
),
),
const SizedBox(height: 10),
SizedBox(
height: size.height * 0.73,
child: GridView.builder(
itemCount: categories.length,
padding: const EdgeInsets.only(top: 5),
itemBuilder: (context, index) => Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: primaryColor,
),
child: Column(
children: [
Container(
height: 115,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
image: DecorationImage(
image: AssetImage(
'assets/images/sub_categories/others/${categories[index].toLowerCase()}.jpg',
),
fit: BoxFit.cover
),
),
),
const SizedBox(height: 2),
Text(
categories[index],
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
color: Colors.white,
),
),
],
),
),
),
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
mainAxisSpacing: 10,
crossAxisSpacing: 10,
crossAxisCount: 2,
),
),
),
],
);
}
}
81 changes: 81 additions & 0 deletions lib/views/main/categories/sneakers.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
import 'package:flutter/material.dart';

import '../../../constants/colors.dart';

class SneakersCategories extends StatelessWidget {
const SneakersCategories({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size;

final categories = [
'Adidas',
'Fila',
'Nike',
'Reebok',
];

return Column(
children: [
const Padding(
padding: EdgeInsets.only(top: 10.0),
child: Text(
'Sneakers categories',
style: TextStyle(
fontWeight: FontWeight.w500,
fontSize: 18,
),
),
),
const SizedBox(height: 10),
SizedBox(
height: size.height * 0.73,
child: GridView.builder(
itemCount: categories.length,
padding: const EdgeInsets.only(top: 5),
itemBuilder: (context, index) => Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: primaryColor,
),
child: Column(
children: [
Container(
height: 115,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
image: DecorationImage(
image: AssetImage(
'assets/images/sub_categories/sneakers/${categories[index].toLowerCase()}.jpg',
),
fit: BoxFit.cover
),
),
),
const SizedBox(height: 2),
Text(
categories[index],
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
color: Colors.white,
),
),
],
),
),
),
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
mainAxisSpacing: 10,
crossAxisSpacing: 10,
crossAxisCount: 2,
),
),
),
],
);
}
}
Loading

0 comments on commit 9b13f56

Please sign in to comment.