从零开始搭建完整的电影全栈系统(七)——基于Flutter开发的影视App展示"/>
从零开始搭建完整的电影全栈系统(七)——基于Flutter开发的影视App展示
项目地址:
欢迎Star!给点动力!
多图杀猫,直接展示页面
pubspec.yaml
name: android
description: 今日看片客户端# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# .html
version: 6.1.0+250000environment:sdk: ">=2.2.2 <3.0.0"dependencies:flutter:sdk: flutter#突破打印长度限制r_logger: ^0.1.2fluttertoast: ^4.0.1carousel_slider: ^1.4.1cached_network_image: 2.0.0transparent_image: ^1.0.0dio: ^3.0.9redux: ^4.0.0flutter_redux: ^0.6.0redux_persist: ^0.8.3redux_persist_flutter: ^0.8.2underline_indicator: ^0.0.2flutter_staggered_grid_view: ^0.3.0#flutter_webview_plugin: ^0.3.11palette_generator: ^0.2.3webview_flutter: ^0.3.21#x5_webview: ^0.2.2permission_handler: ^5.0.0common_utils: ^1.1.3rxdart: ^0.22.6fluintl: ^0.1.3flukit: ^1.0.2share: ^0.6.4+1url_launcher: ^5.4.5flutter_bugly: ^0.2.8flutter_tencentplayer: ^0.5.0screen: 0.0.5package_info: ^0.4.0+18#flutter_downloader: ^1.4.4launch_review: ^2.0.0flutter_forbidshot: 0.0.2path_provider: ^1.6.8flutter_launcher_icons: ^0.7.5tencent_ad: ^1.0.2+2# The following adds the Cupertino Icons font to your application.# Use with the CupertinoIcons class for iOS style icons.cupertino_icons: ^0.1.2dev_dependencies:flutter_test:sdk: flutterflutter_icons:android: "ic_launcher"ios: falseimage_path: "images/icon.png"
# For information on the generic Dart part of this file, see the
# following page: /tools/pub/pubspec# The following section is specific to Flutter.
flutter:# The following line ensures that the Material Icons font is# included with your application, so that you can use the icons in# the material Icons class.uses-material-design: true# To add assets to your application, add an assets section, like this:assets:- images/- images/guide1.png- images/guide2.png- images/guide3.png- images/guide4.png- images/splash_bg.png- images/icon.png- images/tencentplayer/icon_back.png- images/tencentplayer/place_nodata.png- images/tencentplayer/player_lock.png- images/tencentplayer/player_pause.png- images/tencentplayer/player_play.png- images/tencentplayer/player_progress_img.png- images/tencentplayer/player_rotate.png- images/tencentplayer/player_unlock.png- images/tencentplayer/video_loading.png- images/tencentplayer/full_screen_on.png# - images/a_dot_ham.jpeg# An image asset can refer to one or more resolution-specific "variants", see# /assets-and-images/#resolution-aware.# For details regarding adding assets from package dependencies, see# /assets-and-images/#from-packages# To add custom fonts to your application, add a fonts section here,# in this "flutter" section. Each entry in this list should have a# "family" key with the font family name, and a "fonts" key with a# list giving the asset and other descriptors for the font. For# example:# fonts:# - family: Schyler# fonts:# - asset: fonts/Schyler-Regular.ttf# - asset: fonts/Schyler-Italic.ttf# style: italic# - family: Trajan Pro# fonts:# - asset: fonts/TrajanPro.ttf# - asset: fonts/TrajanPro_Bold.ttf# weight: 700## For details regarding fonts from package dependencies,# see /custom-fonts/#from-packages
数据接口
详见lib/app/api_client.dart文件
- 目前页面页面之间直接传值,这样显得很low,后续用状态管理完善
- 目前收藏和观看记录存在本机,后续完善用户功能
- 目前接口基于某个电影CMS改写的,后续换成自己的接口,支持更多功能
请作者来一根或者一包华子
更多推荐
从零开始搭建完整的电影全栈系统(七)——基于Flutter开发的影视App展示
发布评论