Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
神楽坂花火 committed Mar 15, 2020
2 parents 959a467 + d4e114f commit 229f6ba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
10 changes: 4 additions & 6 deletions lib/pages/recent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ class _RecentPageState extends State<RecentPage>
@override
void didChangeDependencies() {
super.didChangeDependencies();
_initialize();
if (current == null) {
_initialize();
}
}

@override
Expand Down Expand Up @@ -326,11 +328,7 @@ class _TileState extends State<_Tile> {
}
return GestureDetector(
onTap: () async {
await DetailsPage.push(
context,
data: widget.data,
heroTag: widget.heroTag,
);
await DetailsPage.push(context, data: widget.data, heroTag: widget.heroTag);
setState(() {});
},
child: Container(
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/splash.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ class _SplashPageState extends State<SplashPage> {
@override
void initState() {
super.initState();
_initial();
_initialize();
}

Future<void> _initial() async {
Future<void> _initialize() async {
_timer = Timer(const Duration(seconds: 3), () => HomePage.push(context));
List<dynamic> results = await Future.wait([
TujianApi.getTypes(),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dailypics
description: A new Flutter application.
version: 2.1.2+200307
version: 2.1.4+200314

environment:
sdk: ">=2.3.0 <3.0.0"
Expand Down

0 comments on commit 229f6ba

Please sign in to comment.