摘要://int转string 8848.toString(); //string转int int.parse("8848");
阅读全文
摘要:运行flutter run时报错 提示如下: Could not find the built application bundle at build/ios/iphonesimulator/Runner.app. Error launching application on iPhone 11 P
阅读全文
摘要:style:TextStyle(color: Colors.white) style:TextStyle(color: Colors.white70) color: Colors.blue[400] color: Color(0xfff1f1f1)
阅读全文
摘要:// 拼接字符串, 输出:单引号空格 或者 双引号空格 String blockStr = '单引号'+'空格'; String blockStr1 = "双引号"+"空格";
阅读全文
摘要:width: MediaQuery.of(context).size.width, height: MediaQuery.of(context).size.height,
阅读全文
摘要:// 单引号里面有单引号,必须在前面加反斜杠 String str3 = '单引号里面有单引号it\'s,必须在前面加反斜杠.'; //双引号里面嵌套单引号(正常使用) String str4 = "双引号里面有单引号it's."; //单引号里面嵌套双引号(正常使用) String str5 = '单引号里面有双引号,"hello world"'; //双引号里面嵌套双引号,必须在前面加反斜杠...
阅读全文