Giter Site home page Giter Site logo

flutter_video_audio_news's Introduction

Flutter的实战练习(更新中)

版本信息:

version: 1.0.0+1
environment: sdk: ">=2.1.0 <3.0.0"

state管理 flutter_bloc

使用三方库

网络请求库: dio
UI尺寸适配库: flutter_screenutil
打电话
下拉刷新&上拉加载: flutter_easyrefresh
瀑布流: flutter_staggered_grid_view
视频播放: chewie
音乐播放: https://github.com/luanpotter/audioplayers
轮播: flutter_swiper

代码结构

  • |--lib
    • |-- bloc
      • |-- counter_bloc.dart
    • |-- config
      • |-- service_url.dart (存放url)
    • |-- model
      • |-- video_context_model.dart (视频1级model)
    • |-- pages (页面)
      • |-- details (详情界面)
        • |-- comment_details.dart (评论)
        • |-- video_details.dart (视频)
        • |-- video_info.dart (视频简介)
      • |-- widget (小部件)
        • |-- drawer_widget.dart (侧边栏)
      • |-- audio_page.dart (音频)
      • |-- news_page.dart (新闻)
      • |-- video_page.dart (视频)
    • |-- service
      • |-- service_method.dart (网络请求)
    • |-- mian.dart (入口)
    • |-- tabbar.dart (Tabbar)
    • |-- top_screen.dart (把tabbar和state管理分开)

感谢:

接口来自 http://gank.io/api

项目截图

视频

image
image
ios模拟器加载不出视频,只能使用真机测.....
image
image

音频


image

新闻

...

flutter_video_audio_news's People

Contributors

shaoting0730 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.