随笔分类 - flutter
摘要:flutter ios 深色模式下状态栏文字是白色的,白色背景下看不见 theme: ThemeData( appBarTheme: const AppBarTheme( systemOverlayStyle: SystemUiOverlayStyle( statusBarBrightness: B
阅读全文
摘要:decoration: InputDecoration( contentPadding: EdgeInsets.symmetric(vertical: 0), // border: InputBorder.none, border: OutlineInputBorder(borderSide: Bo
阅读全文
摘要:在我们进行两个double运算时,例如:2..0-1.1 不是想象的输出0.9,而是0.89999999999999999。其主要原因是浮点数值采用二进制系统表示,而在二进制系统中无法精确的表示分数1/10。这就好像十进制无法精确地表示1/3一样。如果需要在数值计算中不含有任何舍入误差,就应该使用B
阅读全文
摘要:1 class NewstStyle extends StatelessWidget { 2 final List<DkCenterUpload> upload; 3 const NewstStyle({ 4 Key key, 5 this.upload: const [], 6 }) : supe
阅读全文
摘要:
阅读全文
摘要:main.dart navigatorObservers: [ MyApp.routeObserver, GLObserver(),//全局监听路由 ], router_listener.dart class GLObserver extends NavigatorObserver { // 添加导
阅读全文
摘要:局部控制键盘收回 import 'package:flutter/material.dart'; import 'package:TLDF/main.dart'; class KeyboardBack { static BuildContext context = navigatorKey.curr
阅读全文
摘要:keyboardType:TextInputType.numberWithOptions(decimal: true),
阅读全文
摘要:https://www.cnblogs.com/upwgh/p/13367589.html
阅读全文
摘要:1 Traceback (most recent call last): 2 File "/tmp/C5FDB25B-C7F4-462E-8AC9-7FF9D1A50F21/fruitstrap_d3ca95e47b6608c20ff2410e8938899af5a79f42.py", line 2
阅读全文
摘要:第一步 引入依赖 dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter 第二步 在main.dart中添加代码 MaterialApp( //省略若干代码........ //国际化 localizations
阅读全文
摘要:关键代码 keyboardType: TextInputType.number, inputFormatters: [ FilteringTextInputFormatter(RegExp("[0-9.]"), allow: true), MyNumberTextInputFormatter(dig
阅读全文
摘要:自定义对象 1 class Dk { 2 int id; 3 String title; 4 String address; 5 String ww; 6 String account; 7 } 传值 1 Navigator.push( 2 context, 3 MaterialPageRoute(
阅读全文

浙公网安备 33010602011771号