
Flutter
小白阿里里
前端小白一枚,写下这些希望能方便自己记忆查找,也希望能帮到其他需要帮助的朋友们,如果有改进或者错误的地方希望能得到大家指点,共同进步。
展开
-
Flutter Widget 大全
作者:o动感超人o转自:https://juejin.im/post/5cd158146fb9a0320e73ee51转载 2020-03-30 17:00:17 · 318 阅读 · 0 评论 -
Flutter 自动调整文本大小 auto_size_text
官方文档:https://pub.dev/packages/auto_size_text作用:可自动调整文本大小以使其完全适合其边界1.在 pubspec.yaml 中添加 auto_size_text 包扩展2.用法:AutoSizeText( 'The text to display', style: TextStyle(fontSize: 20), maxLines: ...原创 2020-03-27 16:39:53 · 6375 阅读 · 0 评论 -
Flutter 事件广播 event_bus
官方包参考地址: https://pub.dev/packages/event_bus1.在 pubspec.yaml 中添加 event_bus 包扩展2.我新建了一个 event_bus_Util.dart 用来创建实例和定义事件import 'package:event_bus/event_bus.dart';/// The global [EventBus] object.Ev...原创 2020-03-26 11:48:16 · 428 阅读 · 0 评论 -
Dart 中常用的数组操作方法总结
这位博主写的很详细到位,这里就不复制粘贴了,留下传送门Dart 中常用的数组操作方法总结转载 2020-03-26 10:30:23 · 2224 阅读 · 0 评论 -
Flutter 开发过程问题二
出现错误The method ‘markNeedsBuild’ was called on null#0 State.setState (package:flutter/src/widgets/framework.dart:1191)#1 _CreditsDetailsState.lostCreditsDetail.<anonymous closure> ...多是因为页面...原创 2020-03-26 10:21:11 · 312 阅读 · 0 评论 -
Flutter 开发过程问题一
pod 报如下错误Automatically assign platform ‘ios’ with version ‘10.0’ on target…这是在使用cocoapods安装三方库配置podfile之后的一个警告信息翻译过来就是:因为未指定平台,所以自动在目标“ Runner”上分配版本为“ 10.0”的平台“ ios”。 请在您的Podfile中为此目标指定平台在 Podf...原创 2020-03-26 09:35:11 · 433 阅读 · 0 评论 -
Flutter 中如何将 appBar 设置成透明
Flutter 中如何将 appBar 设置成透明在 flutter 中有时候因为业务需求需要将 appBar 设置成透明,设置方法如下:Scaffold( // Scaffold 组件设置背景色 backgroundColor: Color.fromRGBO(14, 14, 31, 1), appBar: AppBar( ti...原创 2019-08-07 10:52:43 · 6265 阅读 · 0 评论