Skip to content

Commit

Permalink
some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Jan 21, 2020
1 parent 0e591f4 commit 4c30832
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ The code for Springy Widget is taken and refactored from (https://github.com/mat
<img height="480px" src="screenshots/intro6.gif"> <img height="480px" src="screenshots/intro4.gif"> <img height="480px" src="screenshots/onboard3.gif"> <img height="480px" src="screenshots/onboard2.gif"> <img height="480px" src="screenshots/onboarding1.gif"><img height="480px" src="screenshots/i5.gif">

## miscellaneous widgets
<img height="480px" src="screenshots/gallery1.png"> <img height="480px" src="screenshots/musicplayer2.png"> <img height="480px" src="screenshots/image-popup.png"> <img height="480px" src="screenshots/dash3.png"> <img height="480px" src="screenshots/dash2.png"> <img height="480px" src="screenshots/chat2.png"> <img height="480px" src="screenshots/dash1.png"> <img height="480px" src="screenshots/chatui.png"> <img height="480px" src="screenshots/landing1.png"> <img height="480px" src="screenshots/form.png"> <img height="480px" src="screenshots/sliders.gif"> <img height="480px" src="screenshots/dialog2.png"> <img height="480px" src="screenshots/dialog1.png"> <img height="480px" src="screenshots/hidden_menu1.gif"> <img height="480px" src="screenshots/springy_slider.gif"> <img height="480px" src="screenshots/sliverappbar1.gif"> <img height="480px" src="screenshots/hero-animation.gif">
<img height="480px" src="screenshots/btm2.png"><img height="480px" src="screenshots/music.png"> <img src="screenshots/crop1.png" height="480px" >
<img height="480px" src="screenshots/gallery1.png"> <img height="480px" src="screenshots/musicplayer2.png"> <img height="480px" src="screenshots/image-popup.png"> <img height="480px" src="screenshots/dash3.png"> <img height="480px" src="screenshots/dash2.png"> <img height="480px" src="screenshots/chat2.png"> <img height="480px" src="screenshots/dash1.png"> <img height="480px" src="screenshots/chatui.png"> <img height="480px" src="screenshots/landing1.png"> <img height="480px" src="screenshots/form.png"> <img height="480px" src="screenshots/sliders.gif"> <img height="480px" src="screenshots/dialog2.png"> <img height="480px" src="screenshots/dialog1.png"> <img height="480px" src="screenshots/hidden_menu1.gif"> <img height="480px" src="screenshots/springy_slider.gif"> <img height="480px" src="screenshots/sliverappbar1.gif"> <img height="480px" src="screenshots/hero-animation.gif"> <img height="480px" src="screenshots/btm2.png"><img height="480px" src="screenshots/music.png"> <img src="screenshots/crop1.png" height="480px" >

## Blog

Expand Down
2 changes: 1 addition & 1 deletion lib/core/presentation/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ final List<dynamic> pages = [
SubMenuItem("Onboarding 5", Intro5(), path: Intro5.path),
]),
MenuItem(title: "Miscellaneous", items: [
SubMenuItem('Image/Widget Crop', CropPage(), path: CropPage.path, icon: Icons.crop),
SubMenuItem("Gallery One", GalleryPageOne(),
path: GalleryPageOne.path),
SubMenuItem("Music Player Two", MusicPlayerTwoPage(),
Expand All @@ -298,7 +299,6 @@ final List<dynamic> pages = [
path: BottomSheetAwesome.path),
SubMenuItem('Music player', MusicPlayer(),
path: MusicPlayer.path),
SubMenuItem('Image/Widget Crop', CropPage(), path: CropPage.path, icon: Icons.crop),
]),
SubMenuItem("Grocery UI Kit", GroceryHomePage(), path: GroceryHomePage.path)
];
Expand Down
3 changes: 2 additions & 1 deletion lib/features/home/presentation/pages/new_home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class _NewHomePageState extends State<NewHomePage>
if (remoteConfig == null) remoteConfig = await RemoteConfig.instance;
final Map<String, dynamic> defaults = {
"news": "[]",
"survey": {},
"survey": "",
};
await remoteConfig.setDefaults(defaults);
await remoteConfig.fetch(expiration: const Duration(hours: 12));
Expand All @@ -62,6 +62,7 @@ class _NewHomePageState extends State<NewHomePage>
announcements = List<Map<String, dynamic>>.from(json.decode(value))
.map((data) => Announcement.fromMap(data))
.toList();
if(surval.isNotEmpty)
survey =
SurveyItem.fromMap(Map<String, dynamic>.from(json.decode(surval)));
});
Expand Down

0 comments on commit 4c30832

Please sign in to comment.