随笔分类 - Flutter
记录Flutter相关知识问题
摘要:@、initialValue不会随setState更新,只能使用controller来控制 使用initialValue来控制,值不会被更新 使用controller来控制,值会变 import 'package:flutter/material.dart'; void main() { runAp
阅读全文
摘要:@、BasicMessageChannel<T> BasicMessageChannel<T> Future<T> send(T message) async void setMessageHandler(Future<T>handler(T message)) MessageCodec<T>: B
阅读全文
摘要:Flutter官方介绍Provider:https://flutter.dev/docs/development/data-and-backend/state-mgmt/simple 模型继承ChangeNotifier,ChangeNotifierProvider(或者MultiProvider)
阅读全文
摘要:按照flutter官方给的说明:https://github.com/flutter/flutter/wiki/Desktop-shells 参考:https://www.cnblogs.com/hupo376787/archive/2019/06/08/10990899.html 我的操作: 1、
阅读全文
摘要:原文:http://www.cocoachina.com/articles/27064 我采用的是方法是:包一层SingleChildScrollView,让页面可以滑动起来 http://www.cocoachina.com/articles/27064
阅读全文