使用 Flutter 模仿抖音国外版, 本项目持续更新
☺️ 右上角点击 ★Star,轻轻松松,一秒钟 🤣)!我会根据大家的关注度和个人时间持续更新代码!
开源不易,麻烦给个 Star★ 吧(版本
- 抖音国际版
- 抖音国内手机版
- 抖音国内桌面版
Tasks
- 视频上下播放
- 数据显示正常
- 评论
- 搜索
- 聊天
- 点赞
- 分享
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.