This file contains hidden or 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
| _buildDetailsAndMaterialWidgets() { | |
| TabController tabController = new TabController(length: 2, vsync: this); | |
| return Container( | |
| child: Column( | |
| crossAxisAlignment: CrossAxisAlignment.start, | |
| mainAxisSize: MainAxisSize.min, | |
| children: <Widget>[ | |
| TabBar( | |
| controller: tabController, | |
| tabs: <Widget>[ |
This file contains hidden or 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
| _buildBottomNavigationBar() { | |
| return Container( | |
| width: MediaQuery.of(context).size.width, | |
| height: 50.0, | |
| child: Row( | |
| mainAxisSize: MainAxisSize.max, | |
| mainAxisAlignment: MainAxisAlignment.spaceAround, | |
| children: <Widget>[ | |
| Flexible( | |
| fit: FlexFit.tight, |
This file contains hidden or 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
| _buildProductItemCard(BuildContext context) { | |
| return InkWell( | |
| onTap: () { | |
| Navigator.of(context).pushNamed(Constants.ROUTE_PRODUCT_DETAIL); | |
| }, | |
| child: Card( | |
| //rest of the widget | |
| ), | |
| ); | |
| } |
This file contains hidden or 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
| SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.php [L] | |
| </IfModule> |
This file contains hidden or 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
| *<?php | |
| /** | |
| * The base configuration for WordPress | |
| * The wp-config.php creation script uses this file during the | |
| * installation. You don't have to use the web site, you can | |
| * copy this file to "wp-config.php" and fill in the values. | |
| * | |
| * This file contains the following configurations: | |
| * | |
| * * MySQL settings |
This file contains hidden or 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
| [ | |
| { | |
| "id": 485, | |
| "name": "Kids Cloth", | |
| "slug": "kids-cloth", | |
| "permalink": "http://flutterecommerce.geekydev.com/product/kids-cloth/", | |
| "date_created": "2018-07-18T10:11:22", | |
| "date_created_gmt": "2018-07-18T10:11:22", | |
| "date_modified": "2018-07-18T10:12:41", | |
| "date_modified_gmt": "2018-07-18T10:12:41", |
This file contains hidden or 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
| class ProductsListItem extends StatelessWidget { | |
| final Product product1; | |
| final Product product2; | |
| ProductsListItem({ | |
| @required this.product1, | |
| @required this.product2, | |
| }); | |
| @override | |
| Widget build(BuildContext context) { | |
| return Row( |
This file contains hidden or 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
| Future<dynamic> _getProductsByCategory(categoryId, pageIndex) async { | |
| var response = await http.get( | |
| RemoteConfig.config["BASE_URL"] + | |
| RemoteConfig.config["BASE_PRODUCTS_URL"] + | |
| "&category=$categoryId&per_page=6&page=$pageIndex", | |
| headers: { | |
| "Authorization": RemoteConfig.config["AuthorizationToken"], | |
| }, | |
| ).catchError( | |
| (error) { |
This file contains hidden or 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
| var response = await http.get( | |
| RemoteConfig.config["BASE_URL"] + | |
| RemoteConfig.config["BASE_PRODUCTS_URL"] + | |
| "&category=$categoryId&per_page=6&page=$pageIndex", | |
| headers: { | |
| "Authorization": RemoteConfig.config["AuthorizationToken"], | |
| }, | |
| ).catchError( | |
| (error) { | |
| return false; |
This file contains hidden or 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
| class RemoteConfig { | |
| static final Map<dynamic, String> config = { | |
| "AuthorizationToken": "MY_TOKEN", | |
| "BASE_URL": "http://base_url.geekyants.com/", | |
| "BASE_PRODUCTS_URL": "sub_url/products/", | |
| }; | |
| } |