Skip to content

Commit

Permalink
update(deps)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Apr 27, 2020
1 parent 44dd089 commit b39939a
Show file tree
Hide file tree
Showing 13 changed files with 144 additions and 100 deletions.
96 changes: 57 additions & 39 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:pedantic/analysis_options.1.8.0.yaml
include: package:pedantic/analysis_options.1.9.0.yaml
analyzer:
exclude:
# Ignore generated files
Expand Down
11 changes: 6 additions & 5 deletions ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/hoangtanduy/Desktop/dev/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/hoangtanduy/Desktop/dev/clones/wallpaper-flutter"
export "FLUTTER_TARGET=lib/main.dart"
export "FLUTTER_ROOT=C:\flutter\flutter"
export "FLUTTER_APPLICATION_PATH=E:\Admin\Documents\Android\wallpaper-flutter"
export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
export "FLUTTER_FRAMEWORK_DIR=/Users/hoangtanduy/Desktop/dev/flutter/bin/cache/artifacts/engine/ios"
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
export "OTHER_LDFLAGS=$(inherited) -framework Flutter"
export "FLUTTER_FRAMEWORK_DIR=C:\flutter\flutter\bin\cache\artifacts\engine\ios"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
2 changes: 1 addition & 1 deletion lib/data/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ImageDB {

Future<Database> open() async {
final directory = await getApplicationDocumentsDirectory();
final String path = join(directory.path, dbName);
final path = join(directory.path, dbName);
return await openDatabase(
path,
version: 2,
Expand Down
6 changes: 3 additions & 3 deletions lib/image_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class StaggeredImageList extends StatelessWidget {
return Center(
child: Text(
'An error occurred',
style: Theme.of(context).textTheme.body1,
style: Theme.of(context).textTheme.bodyText2,
),
);
}
Expand All @@ -41,7 +41,7 @@ class StaggeredImageList extends StatelessWidget {
return Center(
child: Text(
'Image list is empty!',
style: Theme.of(context).textTheme.body1,
style: Theme.of(context).textTheme.bodyText2,
),
);
}
Expand Down Expand Up @@ -164,7 +164,7 @@ class ImageItem extends StatelessWidget {
overflow: TextOverflow.ellipsis,
style: Theme.of(context)
.textTheme
.subhead
.subtitle1
.copyWith(fontSize: 14.0),
),
),
Expand Down
6 changes: 3 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class _MyHomePageState extends State<MyHomePage>
'Wallpaper HD Flutter',
style: Theme.of(context)
.textTheme
.title
.headline6
.copyWith(color: Colors.white),
),
decoration: BoxDecoration(
Expand Down Expand Up @@ -303,7 +303,7 @@ class _MyHomePageState extends State<MyHomePage>
return Center(
child: Text(
'Search something...',
style: Theme.of(context).textTheme.subhead,
style: Theme.of(context).textTheme.subtitle1,
),
);
}
Expand All @@ -315,7 +315,7 @@ class _MyHomePageState extends State<MyHomePage>
return Center(
child: Text(
data.error.toString(),
style: Theme.of(context).textTheme.subhead,
style: Theme.of(context).textTheme.subtitle1,
),
);
}
Expand Down
11 changes: 10 additions & 1 deletion lib/screens/downloaded_image_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ class _DownloadedImageDetailPageState extends State<DownloadedImageDetailPage> {
case TargetPlatform.iOS:
externalDir = await getApplicationDocumentsDirectory();
break;
case TargetPlatform.linux:
// TODO: Handle this case.
break;
case TargetPlatform.macOS:
// TODO: Handle this case.
break;
case TargetPlatform.windows:
// TODO: Handle this case.
break;
}
final filePath =
path.join(externalDir.path, 'flutterImages', imageDetail.id + '.png');
Expand All @@ -206,7 +215,7 @@ class _DownloadedImageDetailPageState extends State<DownloadedImageDetailPage> {
if (targetPlatform == TargetPlatform.android) {
// set image as wallpaper
if (await _showDialogSetImageAsWallpaper()) {
final String res = await methodChannel.invokeMethod(
final res = await methodChannel.invokeMethod(
setWallpaper,
<String>['flutterImages', '${imageDetail.id}.png'],
);
Expand Down
6 changes: 3 additions & 3 deletions lib/screens/downloads_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class _DownloadedPageState extends State<DownloadedPage> {
child: Center(
child: Text(
'Your downloaded images is empty',
style: Theme.of(context).textTheme.title,
style: Theme.of(context).textTheme.headline6,
),
),
color: Theme.of(context).backgroundColor,
Expand Down Expand Up @@ -183,7 +183,7 @@ class _DownloadedPageState extends State<DownloadedPage> {
}
}

_showSnackBar(String message) =>
void _showSnackBar(String message) =>
Scaffold.of(context).showSnackBar(SnackBar(content: Text(message)));
}

Expand Down Expand Up @@ -254,7 +254,7 @@ class _DownloadedBloc {
///
///
Directory _cachedStorageDir;
getStorageDir() async {
Future<Directory> getStorageDir() async {
if (_cachedStorageDir != null) {
return _cachedStorageDir;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/favorites_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class FavoritesPage extends StatelessWidget {
return Center(
child: Text(
snapshot.error.toString(),
style: Theme.of(context).textTheme.title,
style: Theme.of(context).textTheme.headline6,
),
);
}
Expand All @@ -45,7 +45,7 @@ class FavoritesPage extends StatelessWidget {
return Center(
child: Text(
'Your favorites is empty',
style: Theme.of(context).textTheme.title,
style: Theme.of(context).textTheme.headline6,
),
);
}
Expand Down
Loading

0 comments on commit b39939a

Please sign in to comment.