随笔分类 - flutter+dart
摘要:import 'dart:io'; import 'dart:convert'; main()async{ List a = ['1.cn','2.cn','3.cn','4.cn','5.cn','6.cn','7.cn','8.cn','9.cn','10.cn','11.cn','12.cn','13.cn','14.cn','
阅读全文
摘要:有关SQLITE最完整的操作语句参考资料,应当是官方网址的http://www.sqlite.org/lang.html这个地方。 select max(id) from table 取最大id select count(*) from table 统计个数 选择满足条件的第一条记录select E
阅读全文
摘要:注意:build(BuildContext context)在 Scaffold.of(context)之前时,会报错,解决办法:通过build widget来解决,如下代码。 taskRun(){ ... } body: ...
阅读全文
摘要:import 'dart:async'; import 'package:semaphore/semaphore.dart'; import 'dart:io'; import 'dart:convert'; import 'dart:math'; import "dart:math"; void main() async { int maxCount = 5; LocalSemap...
阅读全文
摘要:SingleChildScrollView, CustomScrollView, container, init: double.inifinity. then use Expanded to constraint height, width both horizontal, and vertica
阅读全文
摘要:import 'package:flutter/material.dart'; import 'package:rxdart/rxdart.dart'; import 'package:flutter/widgets.dart'; //import 'package:flutter_mvvm/core/viewmodel_provider.dart'; //import 'package...
阅读全文
摘要:Keep in mind that this would also create a custom transition animation and behave differently than the more complex MaterialPageRoute (e.g. the swipe-
阅读全文
摘要:class EditDict extends StatelessWidget { @override Widget build(BuildContext context) { // TODO: implement build return SafeArea(child: Scaffold( appBar: AppBar(title: Text('Edit ...
阅读全文
摘要:main.dart demo_isolates.dart
阅读全文
摘要:SingleChildScrollView
阅读全文
摘要:The fix for this is to set the Scaffold property:resizeToAvoidBottomPadding: false,
阅读全文
摘要:Flutter数据库Sqflite之增删改查 简介 sqflite是Flutter的SQLite插件,支持iOS和Android,目前官方版本是sqflite1.1.3 sqflite插件地址:https://pub.dartlang.org/packages/sqflite#-readme-tab
阅读全文
摘要:BottomNavigationBar( type: BottomNavigationBarType.fixed, onTap: (value){if more then 3 items,, use this.
阅读全文
摘要:Flutter中的手势系统有两个层次。第一层具有原始指针事件,其描述了穿过屏幕的指针(例如触摸、鼠标和触控笔)的位置和移动。第二层具有手势,其描述由一个或多个指针移动组成的语义动作。 指针指针代表用户与设备屏幕交互的原始数据。有四种类型的指针事件: PointerDownEvent:指针已经在特定位
阅读全文
摘要:import 'dart:async'; import 'package:semaphore/semaphore.dart'; import 'dart:io'; import 'dart:convert'; void main() async{ List a = ['zizi.cn','wuwu.cn','baba.cn','hehe.cn','mama.cn','ququ.cn','k...
阅读全文
摘要:http://www.cndartlang.com/841.html
阅读全文
摘要:connectivity This plugin allows Flutter apps to discover network connectivity and configure themselves accordingly. It can distinguish between cellula
阅读全文
摘要:https://blog.csdn.net/yichengace/article/details/80167878
阅读全文
摘要:TextField( controller: TextEditingController.fromValue(TextEditingValue( // 设置内容 text: inputText, // 保持光标在最后 selection: TextSelection.fromPosition(Tex
阅读全文
浙公网安备 33010602011771号