Skip to content
/ douyin Public
forked from telsav/douyin

使用Flutter撸一个抖音国外版,看看有多炫

Notifications You must be signed in to change notification settings

imloama/douyin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用 Flutter 模仿抖音国外版

flutte_app is a Flutter library for dealing with douyin app.

抖音截图

Installation

Use the package manager Flutter to install foobar.

Invoke View > Command Palette.
Type “flutter”, and select the Flutter: New Project.
Enter a project name, such as myapp, and press Enter.
Create or select the parent directory for the new project folder.
Wait for project creation to complete and the main.dart file to appear.

代办事项

  • 视频上下播放
  • 数据显示正常
  • 评论
  • 搜索
  • 聊天
  • 点赞
  • 分享

Usage

class HomeState extends State<Home> {
  int currentIndex = 0;
  PageController pageController;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: PageView(
        controller: pageController,
        children: <Widget>[
          Trending(),
        ],
        onPageChanged: (int index) {
          setState(() {
            currentIndex = index;
          });
        },
      ),
      bottomNavigationBar: bottomItems(currentIndex, pageController),
    );
  }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

使用Flutter撸一个抖音国外版,看看有多炫

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 31.5%
  • Makefile 31.2%
  • Java 29.5%
  • D 3.6%
  • C++ 3.0%
  • Swift 0.3%
  • Other 0.9%