-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV UPDATE:Save state after navigator BottomNavigationBar #13
- Loading branch information
1 parent
1cbb6d2
commit b201c5a
Showing
14 changed files
with
178 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "image": "https://i0.hdslb.com/bfs/new_dyn/9b8b8dfbaf92b5dcde93bebabf84e82c2018113152.png@1295w.jpg", | ||
| "url": "https://t.bilibili.com/769751787118788617", | ||
| "rank": 0 | ||
| } |
This file contains 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "key": "ugc", | ||
| "name": "二创", | ||
| "banners": "$[]banner", | ||
| "videos": "$[]videoPageVideo" | ||
| } |
This file contains 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "rank": 1, | ||
| "video": "$video" | ||
| } |
This file contains 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
This file contains 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import 'package:json_annotation/json_annotation.dart'; | ||
|
|
||
| part 'banner.g.dart'; | ||
|
|
||
| @JsonSerializable() | ||
| class Banner { | ||
| Banner(); | ||
|
|
||
| late String image; | ||
| late String url; | ||
| late num rank; | ||
|
|
||
| factory Banner.fromJson(Map<String,dynamic> json) => _$BannerFromJson(json); | ||
| Map<String, dynamic> toJson() => _$BannerToJson(this); | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| export 'banner.dart' ; | ||
| export 'cacheConfig.dart' ; | ||
| export 'dynamic.dart' ; | ||
| export 'picture.dart' ; | ||
| export 'pictures.dart' ; | ||
| export 'version.dart' ; | ||
| export 'video.dart' ; | ||
| export 'videoPage.dart' ; | ||
| export 'videoPageVideo.dart' ; | ||
| export 'videos.dart' ; |
This file contains 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
This file contains 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import 'package:json_annotation/json_annotation.dart'; | ||
| import "banner.dart"; | ||
| import "videoPageVideo.dart"; | ||
| part 'videoPage.g.dart'; | ||
|
|
||
| @JsonSerializable() | ||
| class VideoPage { | ||
| VideoPage(); | ||
|
|
||
| late String key; | ||
| late String name; | ||
| late List<Banner> banners; | ||
| late List<VideoPageVideo> videos; | ||
|
|
||
| factory VideoPage.fromJson(Map<String,dynamic> json) => _$VideoPageFromJson(json); | ||
| Map<String, dynamic> toJson() => _$VideoPageToJson(this); | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import 'package:json_annotation/json_annotation.dart'; | ||
| import "video.dart"; | ||
| part 'videoPageVideo.g.dart'; | ||
|
|
||
| @JsonSerializable() | ||
| class VideoPageVideo { | ||
| VideoPageVideo(); | ||
|
|
||
| late num rank; | ||
| late Video video; | ||
|
|
||
| factory VideoPageVideo.fromJson(Map<String,dynamic> json) => _$VideoPageVideoFromJson(json); | ||
| Map<String, dynamic> toJson() => _$VideoPageVideoToJson(this); | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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