Skip to content

Commit f39d98a

Browse files
committed
update detailpage
1 parent 1dcc04c commit f39d98a

File tree

32 files changed

+1570
-394
lines changed

32 files changed

+1570
-394
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ A Flutter movie app build with Fish-Redux and TMDB api.
1717
### tabbedpage
1818
<img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios1.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios2.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios3.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios4.png" width="150">
1919
### detailpage
20-
<img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios5.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios14.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios6.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios9.png" width="150">
21-
<img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios10.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios11.png" width="150">
20+
<img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios18.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios5.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios14.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios6.png" width="150">
21+
<img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios9.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios10.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios11.png" width="150">
2222
### share(list、tvshow、movie)
2323
<img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios15.png" width="150"><img src="https://github.com/o1298098/Flutter-Movie/blob/master/srceenshot/ios16.png" width="150">
2424
### other page
2.15 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

ios/.symlinks/plugins/webview_flutter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/Users/hezhibin/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.10+4
1+
/Users/hezhibin/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.12

ios/Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 210 additions & 210 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/Runner/Info.plist

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict>
5-
<key>CFBundleDevelopmentRegion</key>
6-
<string>en</string>
7-
<key>CFBundleExecutable</key>
8-
<string>$(EXECUTABLE_NAME)</string>
9-
<key>CFBundleIdentifier</key>
10-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11-
<key>CFBundleInfoDictionaryVersion</key>
12-
<string>6.0</string>
13-
<key>CFBundleName</key>
14-
<string>movie</string>
15-
<key>CFBundlePackageType</key>
16-
<string>APPL</string>
17-
<key>CFBundleShortVersionString</key>
18-
<string>$(FLUTTER_BUILD_NAME)</string>
19-
<key>CFBundleSignature</key>
20-
<string>????</string>
21-
<key>CFBundleVersion</key>
22-
<string>$(FLUTTER_BUILD_NUMBER)</string>
23-
<key>LSRequiresIPhoneOS</key>
24-
<true/>
25-
<key>UILaunchStoryboardName</key>
26-
<string>LaunchScreen</string>
27-
<key>UIMainStoryboardFile</key>
28-
<string>Main</string>
29-
<key>UISupportedInterfaceOrientations</key>
30-
<array>
31-
<string>UIInterfaceOrientationPortrait</string>
32-
<string>UIInterfaceOrientationLandscapeLeft</string>
33-
<string>UIInterfaceOrientationLandscapeRight</string>
34-
</array>
35-
<key>UISupportedInterfaceOrientations~ipad</key>
36-
<array>
37-
<string>UIInterfaceOrientationPortrait</string>
38-
<string>UIInterfaceOrientationPortraitUpsideDown</string>
39-
<string>UIInterfaceOrientationLandscapeLeft</string>
40-
<string>UIInterfaceOrientationLandscapeRight</string>
41-
</array>
42-
<key>UIViewControllerBasedStatusBarAppearance</key>
43-
<false/>
44-
<key>io.flutter.embedded_views_preview</key>
45-
<true/>
46-
<key>CFBundleLocalizations</key>
47-
<array>
48-
<string>en</string>
49-
<string>pt</string>
50-
<string>es</string>
51-
<string>ja</string>
52-
<string>zh</string>
53-
</array>
54-
<key>NSAppTransportSecurity</key>
55-
<dict>
56-
<key>NSAllowsArbitraryLoads</key>
57-
<true/>
58-
</dict>
59-
<key>NSPhotoLibraryAddUsageDescription</key>
60-
<string>share to other</string>
61-
<key>NSCameraUsageDescription</key>
62-
<string>take photo</string>
63-
<key>NSPhotoLibraryAddUsageDescription</key>
64-
<string>share to other</string>
65-
</dict>
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>movie</string>
15+
<key>CFBundlePackageType</key>
16+
<string>APPL</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>$(FLUTTER_BUILD_NAME)</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>$(FLUTTER_BUILD_NUMBER)</string>
23+
<key>LSRequiresIPhoneOS</key>
24+
<true/>
25+
<key>UILaunchStoryboardName</key>
26+
<string>LaunchScreen</string>
27+
<key>UIMainStoryboardFile</key>
28+
<string>Main</string>
29+
<key>UISupportedInterfaceOrientations</key>
30+
<array>
31+
<string>UIInterfaceOrientationPortrait</string>
32+
<string>UIInterfaceOrientationLandscapeLeft</string>
33+
<string>UIInterfaceOrientationLandscapeRight</string>
34+
</array>
35+
<key>UISupportedInterfaceOrientations~ipad</key>
36+
<array>
37+
<string>UIInterfaceOrientationPortrait</string>
38+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
39+
<string>UIInterfaceOrientationLandscapeLeft</string>
40+
<string>UIInterfaceOrientationLandscapeRight</string>
41+
</array>
42+
<key>UIViewControllerBasedStatusBarAppearance</key>
43+
<false/>
44+
<key>CFBundleLocalizations</key>
45+
<array>
46+
<string>en</string>
47+
<string>pt</string>
48+
<string>es</string>
49+
<string>ja</string>
50+
<string>zh</string>
51+
</array>
52+
<key>NSAppTransportSecurity</key>
53+
<dict>
54+
<key>NSAllowsArbitraryLoads</key>
55+
<true/>
56+
</dict>
57+
<key>NSPhotoLibraryAddUsageDescription</key>
58+
<string>share to other</string>
59+
<key>NSCameraUsageDescription</key>
60+
<string>take photo</string>
61+
<key>NSPhotoLibraryAddUsageDescription</key>
62+
<string>share to other</string>
63+
<key>io.flutter.embedded_views_preview</key>
64+
<true/>
65+
</dict>
6666
</plist>

lib/app.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import 'globalbasestate/store.dart';
2727
import 'views/moremedia_page/page.dart';
2828
import 'package:permission_handler/permission_handler.dart';
2929

30+
import 'package:movie/views/detail_page/page.dart' as detail;
31+
3032
Future _init() async {
3133
if (Platform.isAndroid)
3234
Map<PermissionGroup, PermissionStatus> permissions =
@@ -40,7 +42,7 @@ Future _init() async {
4042
} else {
4143
ApiHelper.session = session;
4244
}
43-
if (accessToken != null)ApiHelper.accessTokenV4=accessToken;
45+
if (accessToken != null) ApiHelper.accessTokenV4 = accessToken;
4446
setLocaleInfo('zh', TimelineInfoCN());
4547
setLocaleInfo('en', TimelineInfoEN());
4648
setLocaleInfo('Ja', TimelineInfoJA());
@@ -59,10 +61,11 @@ Future<Widget> createApp() async {
5961
'episodedetailpage': EpisodeDetailPage(),
6062
'MoreMediaPage': MoreMediaPage(),
6163
'SeasonsPage': SeasonsPage(),
62-
'MyListsPage':MyListsPage(),
63-
'ListDetailPage':ListDetailPage(),
64-
'FavoritesPage':FavoritesPage(),
65-
'WatchlistPage':WatchlistPage()
64+
'MyListsPage': MyListsPage(),
65+
'ListDetailPage': ListDetailPage(),
66+
'FavoritesPage': FavoritesPage(),
67+
'WatchlistPage': WatchlistPage(),
68+
'detailpage': detail.MovieDetailPage(),
6669
},
6770
visitor: (String path, Page<Object, dynamic> page) {
6871
if (page.isTypeof<GlobalBaseState>()) {
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import 'package:flutter/cupertino.dart';
2+
import 'package:flutter/material.dart';
3+
4+
class ScrollViewBackGround extends StatefulWidget {
5+
final double height;
6+
final ScrollController scrollController;
7+
final double maxOpacity;
8+
ScrollViewBackGround({this.scrollController, this.height, this.maxOpacity});
9+
@override
10+
ScrollViewBackGroundState createState() => ScrollViewBackGroundState();
11+
}
12+
13+
class ScrollViewBackGroundState extends State<ScrollViewBackGround> {
14+
double op;
15+
void _scrolllistener() {
16+
double o = widget.scrollController.position.pixels / widget.height;
17+
if (o > widget.maxOpacity) o = widget.maxOpacity;
18+
setState(() {
19+
op = o;
20+
});
21+
}
22+
23+
@override
24+
void initState() {
25+
op = 0.0;
26+
widget.scrollController.addListener(_scrolllistener);
27+
28+
super.initState();
29+
}
30+
31+
@override
32+
void dispose() {
33+
widget.scrollController.removeListener(_scrolllistener);
34+
super.dispose();
35+
}
36+
37+
@override
38+
Widget build(BuildContext context) {
39+
return Container(
40+
color: Colors.black.withOpacity(op),
41+
);
42+
}
43+
}

lib/customwidgets/shimmercell.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
2-
31
import 'package:flutter/material.dart';
42
import 'package:flutter/widgets.dart';
53
import 'package:shimmer/shimmer.dart';
64

75
class ShimmerCell extends StatelessWidget {
8-
const ShimmerCell(
9-
this.width,
10-
this.height,
11-
this.borderRadius);
6+
const ShimmerCell(this.width, this.height, this.borderRadius,
7+
{this.margin = EdgeInsets.zero});
128

139
final double width;
1410
final double height;
1511
final double borderRadius;
12+
final EdgeInsetsGeometry margin;
1613

1714
@override
1815
Widget build(BuildContext context) {
@@ -22,11 +19,12 @@ class ShimmerCell extends StatelessWidget {
2219
child: Container(
2320
width: width,
2421
height: height,
22+
margin: margin,
2523
decoration: BoxDecoration(
2624
borderRadius: BorderRadius.circular(borderRadius),
2725
color: Colors.grey[200],
2826
),
2927
),
3028
);
3129
}
32-
}
30+
}

0 commit comments

Comments
 (0)