-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
483 additions
and
92 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
description: This file stores settings for Dart & Flutter DevTools. | ||
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states | ||
extensions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import 'package:flutter/cupertino.dart'; | ||
|
||
import 'shoe_model.dart'; | ||
|
||
class ShoeData extends ChangeNotifier { | ||
late final show_list = [shoe1, shoe2, shoe3, shoe4]; | ||
|
||
final cart_list = []; | ||
|
||
|
||
|
||
final shoe1 = Shoe( | ||
name: "Classic Leather Sneakers", | ||
description: | ||
"Timeless leather sneakers with a comfortable fit. Perfect for casual wear, offering a blend of style and durability.", | ||
rating: 4.7, | ||
boughtInPastMonth: 75, | ||
price: 79.99, discount: 5, | ||
deliveryDate: DateTime(2024, 9, 5), | ||
deliveryLocation: "Lagos, Nigeria", | ||
imagePath: "assets/images/shoe_1.jpg", // Example image path | ||
); | ||
|
||
final shoe2 = Shoe( | ||
name: "Running Shoes", | ||
description: | ||
"Lightweight and breathable running shoes designed for performance. Features cushioning and support for a comfortable run.", | ||
rating: 4.6, | ||
boughtInPastMonth: 60, | ||
price: 99.99, | ||
discount: 10, | ||
deliveryDate: DateTime(2024, 9, 5), | ||
deliveryLocation: "Abuja, Nigeria", | ||
imagePath: "assets/images/shoe_2.jpg", // Example image path | ||
); | ||
|
||
// ... (similarly create more shoe objects) | ||
|
||
final shoe3 = Shoe( | ||
name: "Hiking Boots", | ||
description: | ||
"Durable hiking boots with ankle support and a rugged outsole. Ideal for outdoor adventures and challenging terrains.", | ||
rating: 4.8, | ||
boughtInPastMonth: 40, | ||
price: 129.99, | ||
discount: 15, | ||
deliveryDate: DateTime(2024, 9, 5), | ||
deliveryLocation: "Port Harcourt, Nigeria", | ||
imagePath: "assets/images/shoe_3.jpg", // Example image path | ||
); | ||
|
||
final shoe4 = Shoe( | ||
name: "Stylish Sandals", | ||
description: | ||
"Comfortable and fashionable sandals perfect for warm weather. Available in various colors and designs.", | ||
rating: 4.5, | ||
boughtInPastMonth: 80, | ||
price: 49.99, | ||
discount: 5, | ||
deliveryDate: DateTime(2024, 9, 5), | ||
deliveryLocation: "Kano, Nigeria", | ||
imagePath: "assets/images/shoe_4.jpg", // Example image path | ||
); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class Shoe { | ||
final String name; | ||
final String description; | ||
final double rating; | ||
final int boughtInPastMonth; | ||
final double price; | ||
final double discount; | ||
final DateTime deliveryDate; | ||
final String deliveryLocation; | ||
final String imagePath; // Added image path field | ||
|
||
Shoe({ | ||
required this.name, | ||
required this.description, | ||
required this.rating, | ||
required this.boughtInPastMonth, | ||
required this.price, | ||
required this.discount, | ||
required this.deliveryDate, | ||
required this.deliveryLocation, | ||
required this.imagePath, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:minimal_e_shop/screens/home.dart'; | ||
|
||
class IntroPage extends StatelessWidget { | ||
const IntroPage({super.key}); | ||
|
||
void ontap(BuildContext context) => Navigator.push( | ||
context, | ||
MaterialPageRoute( | ||
builder: (context) => const MyHomePage(), | ||
)); | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
backgroundColor: Colors.transparent, | ||
), | ||
body: Column( | ||
children: [ | ||
const Spacer(), | ||
Center( | ||
child: Image.asset( | ||
'assets/images/nike_logo.png', | ||
color: Colors.grey[800], | ||
), | ||
), | ||
const Spacer(), | ||
Text( | ||
"Just do it!", | ||
style: TextStyle( | ||
color: Colors.grey[800], | ||
fontSize: 20, | ||
fontWeight: FontWeight.bold), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.all(20.0), | ||
child: Text( | ||
"packages have newer versions" | ||
" incompatible with dependency constraints.", | ||
style: TextStyle(color: Colors.grey[500]), | ||
textAlign: TextAlign.center, | ||
), | ||
), | ||
const SizedBox( | ||
height: 30, | ||
), | ||
GestureDetector( | ||
onTap: () => ontap(context), | ||
child: Container( | ||
height: 60, | ||
margin: const EdgeInsets.symmetric(horizontal: 20), | ||
decoration: BoxDecoration( | ||
borderRadius: BorderRadius.circular(20), | ||
color: Colors.grey[800], | ||
), | ||
child: const Center( | ||
child: Text( | ||
"Shop Now", | ||
style: TextStyle( | ||
color: Colors.white, | ||
fontSize: 20, | ||
fontWeight: FontWeight.bold), | ||
), | ||
), | ||
), | ||
), | ||
const Spacer(), | ||
], | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.