Watch 1 Star 2 Fork 0

vincent / flutterDemoDart

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
flutter练手项目。 spread retract

Clone or download
Loading...
README.md

flutter_app

A new Flutter application.

Getting Started

For help getting started with Flutter, view our online documentation.

https://storage.googleapis.com/dart-archive/channels/dev/release/2.0.0-dev.69.5/sdk/dartsdk-linux-x64-release.zip

###记得在As中安装flutter和dart插件。

flutter build apk 或 flutter build ios

GridView :

GridView 用GridView来将widget放入一个2维的列表中。 GridView提供了2个预装配好的列表,也可以自己建立自定义列表。 GridView支持滚动。

GridView 小结:

将多个widget放进一个表格中 当超出渲染范围时,自动提供滚动功能 可自定义格子,也可用下面提供的2种 GridView.count 指定列的数目(一行显示几列) GridView.extent 允许指定子项的最大像素宽度(限制item的最大宽度)

实例:

new GridView.extent( maxCrossAxisExtent: 370.0, //限定最大宽度 padding: const EdgeInsets.all(4.0), mainAxisSpacing: 4.0, //主轴间距 childAspectRatio: 4.8, //宽度和高度比例,默认是1:1,可以通过调整这个参数改变item宽度 crossAxisSpacing: 4.0, //交叉轴间距 children: buildGridItemList(5), )

windows10下安装flutter出现的问题 https://blog.csdn.net/xiayuandongcn/article/details/83586967

flutter 获取屏幕宽度高度 通知栏高度等屏幕信息

flutter实战5:异步async、await和Future的使用技巧

*** FutureBuilder有数据时展示数据,无数据时展示默认布局。 Flutter-异步加载(Future,async/await

flutter中的异步机制Future

@override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text('首页'),), body: FutureBuilder(future: _getData(), builder: (context, snap){ if(!snap.hasData) { return Container(); } var response = snap.data; print(response.body); return Container(); }) ); }

FlutterActivity报错时执行Flutter Commands

控制器访问规则

Flutter中extends 、implements 、with的用法与区别

extends 、implements 、with的用法与区别

Flutter 命令行打包

Flutter 命令行打包

dart语言--操作符

dart语言--操作符

Flutter Animation

Flutter Animation

Flutter 的生命周期

Flutter 的生命周期

Flutter —— 根据不同屏幕尺寸高效的适配 UI

Flutter —— 根据不同屏幕尺寸高效的适配 UI

####与原生交互 在flutter项目android目录上右键-》flutter-》open Android module in AndroidStudio,可以在AS中打开新项目,等待自动下载完依赖。

Comments ( 0 )

Sign in for post a comment

Dart
1
https://gitee.com/hinabian/flutterDemo.git
git@gitee.com:hinabian/flutterDemo.git
hinabian
flutterDemo
flutterDemo
master

Search