#flutter

Flutter Text 下面有两个默认的下划线,设置划掉

 在style下面的TextStyle增加属性decoration:TextDecoration.none...

Waiting for another flutter command to release the startup lock...

 平时我们在开发flutter过程中,在执行flutterpackagesget命令之后,如果运气不好的,命令没有执行成功的话,我们就会遇到这个错误提示:Waitingforanotherfluttercommandtoreleasethestartuplock...1然后你会发现会发现在任何地方执行flut...

flutter elevation

 elevation:0.0,//下部的影子,该值越大,影子越清楚,为0时,不会有影子,和RaisedButton是一样的...
代码星球 ·2020-11-02

Flutter 环境配置,创建工程

 #下载fluttergitclonehttps://github.com/flutter/flutter.git#导入到环境变量exportPATH="$PATH:`pwd`/flutter/bin"#pre-downloaddevelopmentbinariesflutterrecache#打开一个iOS...

Flutter 简介

 1.简单介绍:Flutter是google发布的一个用于创建跨平台、高性能移动应用框架,目前可以使用在Android、iOS、Web乃至桌面应用上。2.前景:Cordova:Apache项目,其实现原理就是内部封装了一个WebView,然后通过web技术编写移动应用,性能很低。Weex或ReactNativ...
代码星球 ·2020-11-02

flutter MainAxisAlignment和CrossAxisAlignment

 我们只需要记住textDirection就是用来控制水平方向的起始位置和排列方向verticalDirection就是用来控制垂直方向的起始位置和排列方向然后记住MainAxisAlignment(主轴)就是与当前控件方向一致的轴CrossAxisAlignment(交叉轴)就是与当前控件方向垂直的轴&nb...

flutter 局部文字更新

 import'package:flutter/material.dart';voidmain(){print("5hahahha");runApp(newMyApp());}classMyAppextendsStatelessWidget{@overrideWidgetbuild(BuildContextc...
代码星球 ·2020-11-02

flutter 长列表

 import'package:flutter/foundation.dart';import'package:flutter/material.dart';voidmain(){runApp(newMyApp(items:newList<String>.generate(10000,(i)=&g...
代码星球 ·2020-11-02

flutter 底部的Taps

 import'package:flutter/material.dart';voidmain()=>runApp(newMyApp());classMyAppextendsStatelessWidget{@overrideWidgetbuild(BuildContextcontext){finalti...
代码星球 ·2020-11-02

flutter http get请求

 import'dart:async';import'dart:convert';import'package:flutter/material.dart';import'package:http/http.dart'ashttp;Future<Post>fetchPost()async{fina...
代码星球 ·2020-11-02

Waiting for another flutter command to release the startup lock... 异常解决

 进入到你的fluttersdk目录中,然后找到bin/cache/lockfile文件,删除它即可。删除之后你再运行flutterdoctor,你会发现错误已经解决了。  参考:https://blog.csdn.net/qq_26287435/article/details/89537...

flutter 显示来自网上的图片

 如图   import'package:flutter/material.dart';voidmain()=>runApp(newMyApp());classMyAppextendsStatelessWidget{@overrideWidgetbuild(BuildCon...

flutter 水平滚动的list

 import'package:flutter/material.dart';voidmain()=>runApp(newMyApp());classMyAppextendsStatelessWidget{@overrideWidgetbuild(BuildContextcontext){finalti...
代码星球 ·2020-11-02

flutter 基本List

 import'package:flutter/material.dart';voidmain()=>runApp(newMyApp());classMyAppextendsStatelessWidget{@overrideWidgetbuild(BuildContextcontext){finalti...
代码星球 ·2020-11-02

flutter 列表

    import'package:flutter/foundation.dart';import'package:flutter/material.dart';voidmain(){runApp(newAnimatedListSample());}classAnimatedL...
代码星球 ·2020-11-02
首页上一页...23456下一页尾页