11 2020 档案
摘要:flutter使用InkWell点击没有水波纹效果的解决方法 InkWell点击没有水波纹效果原因,如下所示,就是给InkWell的child设置了颜色,遮挡住了效果 InkWell( splashColor: Colors.cyanAccent, //这是水波纹颜色,不影响效果的 child: C
阅读全文
摘要:android原生项目集成flutter模块 创建flutter模块 使用android studio,File->New->New Flutter Project...->Flutter Module->Next->Next->Finish,即可完成,期间可以修改包名、项目名称等。 配置setti
阅读全文
摘要:flutter使用svg库时提示The element is not implemented in this library的解决方法 flutter使用svg需要第三方库支持,配置pubspec.yaml如下 flutter_svg: ^0.19.1 使用代码 SvgPicture.asset(‘
阅读全文
摘要:flutter开发弹起键盘出现Overflow问题的解决方法 方法1: //Scaffold节点下添加resizeToAvoidBottomPadding: false,这样页面就不会随着键盘弹起而滚动。 Scaffold( resizeToAvoidBottomPadding: false, bo
阅读全文
摘要:flutter判断app是否为debug或者release模式 debug模式: import 'package:flutter/foundation.dart'; static bool _debug = kDebugMode; //constant下的一个常量 release模式: import
阅读全文
摘要:效果如下所示: 代码地址 https://github.com/yongfengnice/flutter_circle_progress
阅读全文