-
Notifications
You must be signed in to change notification settings - Fork 23
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
6 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
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,20 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:shoptronics/screens/product/widgets/widgets.dart'; | ||
|
||
class ProductScreen extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: ProductScreenAppBar( | ||
height: MediaQuery.of(context).size.height, | ||
), | ||
body: ListView( | ||
physics: BouncingScrollPhysics(), | ||
children: <Widget>[ | ||
// ImagePageView(), | ||
// ProductInfo(), | ||
], | ||
), | ||
); | ||
} | ||
} |
Empty file.
29 changes: 29 additions & 0 deletions
29
lib/screens/product/widgets/product_appbar/product_appbar.dart
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,29 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:shoptronics/common/cart_icon.dart'; | ||
import 'package:shoptronics/common/common.dart'; | ||
|
||
class ProductScreenAppBar extends StatelessWidget | ||
implements PreferredSizeWidget { | ||
final num height; | ||
ProductScreenAppBar({Key key, @required this.height}) : super(key: key); | ||
|
||
@override | ||
Size get preferredSize => Size.fromHeight(height * 0.28); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return AppBar( | ||
elevation: 0, | ||
leading: Padding( | ||
padding: const EdgeInsets.only(left: 16.0, top: 16.0), | ||
child: BackIcon(), | ||
), | ||
actions: <Widget>[ | ||
Padding( | ||
padding: const EdgeInsets.only(right: 8.0, top: 16.0), | ||
child: CartIcon(), | ||
), | ||
], | ||
); | ||
} | ||
} |
Empty file.
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 @@ | ||
export 'image_page_view/image_page_view.dart'; | ||
export 'product_appbar/product_appbar.dart'; | ||
export 'product_info/product_info.dart'; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export 'home/home_screen.dart'; | ||
export 'product/product_screen.dart'; |