Skip to content

Commit

Permalink
update detailpage
Browse files Browse the repository at this point in the history
  • Loading branch information
o1298098 committed Aug 16, 2019
1 parent 1dcc04c commit f39d98a
Show file tree
Hide file tree
Showing 32 changed files with 1,570 additions and 394 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ A Flutter movie app build with Fish-Redux and TMDB api.
### tabbedpage
<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">
### detailpage
<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">
<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">
<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">
<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">
### share(list、tvshow、movie)
<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">
### other page
Expand Down
Binary file modified android/.gradle/4.10.2/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified android/.gradle/4.10.2/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified android/.gradle/4.10.2/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified android/.gradle/4.10.2/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file modified android/.gradle/4.10.2/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file modified android/.gradle/4.10.2/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified android/.gradle/4.10.2/javaCompile/taskHistory.bin
Binary file not shown.
Binary file modified android/.gradle/4.10.2/taskHistory/taskHistory.bin
Binary file not shown.
Binary file modified android/.gradle/4.10.2/taskHistory/taskHistory.lock
Binary file not shown.
Binary file modified android/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 1 addition & 1 deletion ios/.symlinks/plugins/webview_flutter
420 changes: 210 additions & 210 deletions ios/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Binary file not shown.
124 changes: 62 additions & 62 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>movie</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>io.flutter.embedded_views_preview</key>
<true/>
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>pt</string>
<string>es</string>
<string>ja</string>
<string>zh</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>share to other</string>
<key>NSCameraUsageDescription</key>
<string>take photo</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>share to other</string>
</dict>
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>movie</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>pt</string>
<string>es</string>
<string>ja</string>
<string>zh</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>share to other</string>
<key>NSCameraUsageDescription</key>
<string>take photo</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>share to other</string>
<key>io.flutter.embedded_views_preview</key>
<true/>
</dict>
</plist>
13 changes: 8 additions & 5 deletions lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import 'globalbasestate/store.dart';
import 'views/moremedia_page/page.dart';
import 'package:permission_handler/permission_handler.dart';

import 'package:movie/views/detail_page/page.dart' as detail;

Future _init() async {
if (Platform.isAndroid)
Map<PermissionGroup, PermissionStatus> permissions =
Expand All @@ -40,7 +42,7 @@ Future _init() async {
} else {
ApiHelper.session = session;
}
if (accessToken != null)ApiHelper.accessTokenV4=accessToken;
if (accessToken != null) ApiHelper.accessTokenV4 = accessToken;
setLocaleInfo('zh', TimelineInfoCN());
setLocaleInfo('en', TimelineInfoEN());
setLocaleInfo('Ja', TimelineInfoJA());
Expand All @@ -59,10 +61,11 @@ Future<Widget> createApp() async {
'episodedetailpage': EpisodeDetailPage(),
'MoreMediaPage': MoreMediaPage(),
'SeasonsPage': SeasonsPage(),
'MyListsPage':MyListsPage(),
'ListDetailPage':ListDetailPage(),
'FavoritesPage':FavoritesPage(),
'WatchlistPage':WatchlistPage()
'MyListsPage': MyListsPage(),
'ListDetailPage': ListDetailPage(),
'FavoritesPage': FavoritesPage(),
'WatchlistPage': WatchlistPage(),
'detailpage': detail.MovieDetailPage(),
},
visitor: (String path, Page<Object, dynamic> page) {
if (page.isTypeof<GlobalBaseState>()) {
Expand Down
43 changes: 43 additions & 0 deletions lib/customwidgets/scrollview_background.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class ScrollViewBackGround extends StatefulWidget {
final double height;
final ScrollController scrollController;
final double maxOpacity;
ScrollViewBackGround({this.scrollController, this.height, this.maxOpacity});
@override
ScrollViewBackGroundState createState() => ScrollViewBackGroundState();
}

class ScrollViewBackGroundState extends State<ScrollViewBackGround> {
double op;
void _scrolllistener() {
double o = widget.scrollController.position.pixels / widget.height;
if (o > widget.maxOpacity) o = widget.maxOpacity;
setState(() {
op = o;
});
}

@override
void initState() {
op = 0.0;
widget.scrollController.addListener(_scrolllistener);

super.initState();
}

@override
void dispose() {
widget.scrollController.removeListener(_scrolllistener);
super.dispose();
}

@override
Widget build(BuildContext context) {
return Container(
color: Colors.black.withOpacity(op),
);
}
}
12 changes: 5 additions & 7 deletions lib/customwidgets/shimmercell.dart
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@


import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:shimmer/shimmer.dart';

class ShimmerCell extends StatelessWidget {
const ShimmerCell(
this.width,
this.height,
this.borderRadius);
const ShimmerCell(this.width, this.height, this.borderRadius,
{this.margin = EdgeInsets.zero});

final double width;
final double height;
final double borderRadius;
final EdgeInsetsGeometry margin;

@override
Widget build(BuildContext context) {
Expand All @@ -22,11 +19,12 @@ class ShimmerCell extends StatelessWidget {
child: Container(
width: width,
height: height,
margin: margin,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(borderRadius),
color: Colors.grey[200],
),
),
);
}
}
}
Loading

0 comments on commit f39d98a

Please sign in to comment.