added keys parameter to coupons containers

This commit is contained in:
Semyon Babushkin
2017-12-11 14:38:02 +03:00
parent 8c42d040c0
commit cd9a831571
3 changed files with 6 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
<option name="ALLOW_USER_CONFIGURATION" value="false" /> <option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" /> <option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" /> <option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" /> <option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res;file://$MODULE_DIR$/src/autobonus/res" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" /> <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
</configuration> </configuration>
</facet> </facet>
@@ -137,6 +137,7 @@
<excludeFolder url="file://$MODULE_DIR$/../../build/app/intermediates/symbols" /> <excludeFolder url="file://$MODULE_DIR$/../../build/app/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/../../build/app/intermediates/transforms" /> <excludeFolder url="file://$MODULE_DIR$/../../build/app/intermediates/transforms" />
<excludeFolder url="file://$MODULE_DIR$/../../build/app/outputs" /> <excludeFolder url="file://$MODULE_DIR$/../../build/app/outputs" />
<excludeFolder url="file://$MODULE_DIR$/../../build/app/reports" />
<excludeFolder url="file://$MODULE_DIR$/../../build/app/tmp" /> <excludeFolder url="file://$MODULE_DIR$/../../build/app/tmp" />
</content> </content>
<orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK" /> <orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK" />
@@ -164,6 +165,6 @@
<orderEntry type="module" module-name="path_provider" exported="" /> <orderEntry type="module" module-name="path_provider" exported="" />
<orderEntry type="module" module-name="sqflite" exported="" /> <orderEntry type="module" module-name="sqflite" exported="" />
<orderEntry type="module" module-name="image_picker" exported="" /> <orderEntry type="module" module-name="image_picker" exported="" />
<orderEntry type="library" exported="" name="image_picker-1.0-SNAPSHOT" level="project" /> <orderEntry type="library" exported="" name="glide-3.7.0" level="project" />
</component> </component>
</module> </module>

View File

@@ -193,6 +193,7 @@ abstract class BaseState<T extends StatefulWidget> extends State<T> {
} }
return new Container( return new Container(
key: new Key(new DateTime.now().millisecondsSinceEpoch.toString()),
margin: new EdgeInsets.only(left: 5.0, right: 5.0, top: 5.0), margin: new EdgeInsets.only(left: 5.0, right: 5.0, top: 5.0),
child: new Card( child: new Card(
child: new ExpansionTile( child: new ExpansionTile(

View File

@@ -64,6 +64,8 @@ getCouponsRequest(String endpoint, String token) async {
'Accept-Language': Intl.defaultLocale 'Accept-Language': Intl.defaultLocale
}; };
print(headers);
return httpClient.get(endpoint, headers: headers); return httpClient.get(endpoint, headers: headers);
} }