随笔分类 -  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',' 阅读全文
posted @ 2019-05-02 13:17 CrossPython 阅读(430) 评论(0) 推荐(0)
摘要:有关SQLITE最完整的操作语句参考资料,应当是官方网址的http://www.sqlite.org/lang.html这个地方。 select max(id) from table 取最大id select count(*) from table 统计个数 选择满足条件的第一条记录select E 阅读全文
posted @ 2019-05-01 21:30 CrossPython 阅读(303) 评论(0) 推荐(0)
摘要:注意:build(BuildContext context)在 Scaffold.of(context)之前时,会报错,解决办法:通过build widget来解决,如下代码。 taskRun(){ ... } body: ... 阅读全文
posted @ 2019-05-01 11:42 CrossPython 阅读(421) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2019-05-01 08:52 CrossPython 阅读(266) 评论(0) 推荐(0)
摘要:SingleChildScrollView, CustomScrollView, container, init: double.inifinity. then use Expanded to constraint height, width both horizontal, and vertica 阅读全文
posted @ 2019-04-30 12:12 CrossPython 阅读(268) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2019-04-29 19:08 CrossPython 阅读(170) 评论(0) 推荐(0)
摘要:Keep in mind that this would also create a custom transition animation and behave differently than the more complex MaterialPageRoute (e.g. the swipe- 阅读全文
posted @ 2019-04-29 16:00 CrossPython 阅读(444) 评论(0) 推荐(0)
摘要:class EditDict extends StatelessWidget { @override Widget build(BuildContext context) { // TODO: implement build return SafeArea(child: Scaffold( appBar: AppBar(title: Text('Edit ... 阅读全文
posted @ 2019-04-27 16:01 CrossPython 阅读(463) 评论(0) 推荐(0)
摘要:main.dart demo_isolates.dart 阅读全文
posted @ 2019-04-25 14:41 CrossPython 阅读(219) 评论(0) 推荐(0)
摘要:SingleChildScrollView 阅读全文
posted @ 2019-04-25 10:38 CrossPython 阅读(479) 评论(0) 推荐(0)
摘要:The fix for this is to set the Scaffold property:resizeToAvoidBottomPadding: false, 阅读全文
posted @ 2019-04-25 10:08 CrossPython 阅读(214) 评论(0) 推荐(0)
摘要:Flutter数据库Sqflite之增删改查 简介 sqflite是Flutter的SQLite插件,支持iOS和Android,目前官方版本是sqflite1.1.3 sqflite插件地址:https://pub.dartlang.org/packages/sqflite#-readme-tab 阅读全文
posted @ 2019-04-24 12:39 CrossPython 阅读(990) 评论(0) 推荐(0)
摘要:BottomNavigationBar( type: BottomNavigationBarType.fixed, onTap: (value){if more then 3 items,, use this. 阅读全文
posted @ 2019-04-23 20:46 CrossPython 阅读(159) 评论(0) 推荐(0)
摘要:Flutter中的手势系统有两个层次。第一层具有原始指针事件,其描述了穿过屏幕的指针(例如触摸、鼠标和触控笔)的位置和移动。第二层具有手势,其描述由一个或多个指针移动组成的语义动作。 指针指针代表用户与设备屏幕交互的原始数据。有四种类型的指针事件: PointerDownEvent:指针已经在特定位 阅读全文
posted @ 2019-04-23 19:38 CrossPython 阅读(618) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2019-04-21 20:57 CrossPython 阅读(281) 评论(0) 推荐(0)
摘要:http://www.cndartlang.com/841.html 阅读全文
posted @ 2019-04-18 21:30 CrossPython 阅读(106) 评论(0) 推荐(0)
摘要:server client 阅读全文
posted @ 2019-04-18 21:24 CrossPython 阅读(177) 评论(0) 推荐(0)
摘要:connectivity This plugin allows Flutter apps to discover network connectivity and configure themselves accordingly. It can distinguish between cellula 阅读全文
posted @ 2019-04-18 16:28 CrossPython 阅读(236) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/yichengace/article/details/80167878 阅读全文
posted @ 2019-04-17 23:14 CrossPython 阅读(129) 评论(0) 推荐(0)
摘要:TextField( controller: TextEditingController.fromValue(TextEditingValue( // 设置内容 text: inputText, // 保持光标在最后 selection: TextSelection.fromPosition(Tex 阅读全文
posted @ 2019-04-16 19:09 CrossPython 阅读(2511) 评论(0) 推荐(0)