随笔分类 -  flutter+dart

1 2 3 4 5 ··· 9 下一页
摘要:源代码里要改这个位置, 增加async _channel.setMethodCallHandler((MethodCall call) { _channel.setMethodCallHandler((MethodCall call) async { 阅读全文
posted @ 2022-09-20 19:51 CrossPython 阅读(39) 评论(0) 推荐(0)
摘要:Row( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ Text('是否内部移库? ->'), Builder( builder: (Bu 阅读全文
posted @ 2022-01-23 19:23 CrossPython 阅读(323) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/3b7b1b1d3d7d 出现问题: 在Android真机调试时会出现没有网络权限的情况; 解决办法: 在AndroidManifest.xml 中添加 <uses-permission android:name="android.permissi 阅读全文
posted @ 2022-01-23 10:23 CrossPython 阅读(2051) 评论(0) 推荐(0)
摘要:import 'package:flutter/material.dart'; void main() { runApp(HomePage()); } class HomePage extends StatelessWidget{ @override Widget build(BuildContex 阅读全文
posted @ 2022-01-19 21:24 CrossPython 阅读(348) 评论(0) 推荐(0)
摘要:import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext con 阅读全文
posted @ 2022-01-19 20:34 CrossPython 阅读(188) 评论(0) 推荐(0)
摘要:I have below code in flutter. In initialRoute: attribute, it needs to call isLoggedIn() method which is an async function. I got an error saying I nee 阅读全文
posted @ 2022-01-09 21:10 CrossPython 阅读(42) 评论(0) 推荐(0)
摘要:question: Let's assume that an initialization of MyComponent in Dart requires sending an HttpRequest to the server. Is it possible to construct an obj 阅读全文
posted @ 2022-01-09 13:24 CrossPython 阅读(560) 评论(0) 推荐(0)
摘要:现代手机屏幕尺寸各不相同,导致我们平时写布局的时候会在个不同的移动设备上显示的效果不同。 为了达到一套代码所有手机体验一致效果,需要做尺寸上的适配。 适配方案: 计算公式:实际尺寸 = UI尺寸 * 设备宽度/设计图宽度 1px方案 : 1px = 1 / 设备像素比 实现代码如下(以750设计图为 阅读全文
posted @ 2022-01-08 18:33 CrossPython 阅读(2147) 评论(0) 推荐(0)
摘要:sdk setting, check the sdk dictionary, copy, open , setting project structure, update sdk done. 阅读全文
posted @ 2021-07-24 13:32 CrossPython 阅读(130) 评论(0) 推荐(0)
摘要:Flutter plugin not installed 最诡异,命名AS上安装过了。是因为flutter配置中 并不知道AS的根目录路径,需要加上AS的路径(bin路径,如图) 终端输入: flutter config --android-studio-dir=“C:\Program Files\ 阅读全文
posted @ 2021-02-19 15:16 CrossPython 阅读(82) 评论(0) 推荐(0)
摘要:import 'package:flutter/material.dart'; main() => runApp(MaterialApp( home: HomePage(), )); class HomePage extends StatefulWidget { @override State createState() { return HomePageState();... 阅读全文
posted @ 2019-06-14 13:54 CrossPython 阅读(254) 评论(0) 推荐(0)
摘要:stl => statelessstf => statefulalt+enter, select element => add pading or somethingselect children and press alt+enter => add into column/row or somet 阅读全文
posted @ 2019-06-03 13:43 CrossPython 阅读(368) 评论(0) 推荐(0)
摘要:https://medium.com/flutter-community/flutter-ide-shortcuts-for-faster-development-2ef45c51085b If you’re new to Flutter development then you must be c 阅读全文
posted @ 2019-06-03 11:22 CrossPython 阅读(436) 评论(0) 推荐(0)
摘要:self: main screen: 阅读全文
posted @ 2019-06-02 09:04 CrossPython 阅读(209) 评论(0) 推荐(0)
摘要:import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'dart:ui'; main()=>runApp(MaterialApp( home: MyApp(), )); class MyApp extends Statef... 阅读全文
posted @ 2019-05-31 09:35 CrossPython 阅读(1620) 评论(0) 推荐(0)
摘要:import 'dart:io'; import 'dart:convert'; import 'package:path/path.dart'; import 'package:web_socket_channel/io.dart'; //https://dldir1.qq.com/qqfile/qq/PCQQ9.1.3/25323/QQ9.1.3.25323.exe String... 阅读全文
posted @ 2019-05-30 10:54 CrossPython 阅读(265) 评论(0) 推荐(0)
摘要:Flutter Platform Channels(一) https://www.jianshu.com/p/33ac774f99b1 https://www.jianshu.com/p/c1e2062cf4f7 阅读全文
posted @ 2019-05-30 09:29 CrossPython 阅读(330) 评论(0) 推荐(0)
摘要:whois_handler.dart main.dart 阅读全文
posted @ 2019-05-30 09:03 CrossPython 阅读(249) 评论(0) 推荐(0)
摘要:观察, 减了3个 h 阅读全文
posted @ 2019-05-26 09:51 CrossPython 阅读(538) 评论(0) 推荐(0)
摘要:https://www.v2ex.com/t/567014 跑 aria2 的机器配置比较低,是 j1900+4G 的小机器,系统是 ubuntu18.04 ,所有的任务都是 bt 下载。aria2 的版本是 1.33.1 设置了同时下载的任务最大数量为 30,但经常出现有很多任务一直在等待,但是正 阅读全文
posted @ 2019-05-25 14:29 CrossPython 阅读(2469) 评论(0) 推荐(0)

1 2 3 4 5 ··· 9 下一页