
flutter
tangdou369098655
快乐生活~~~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
保姆级手把手图文并茂教你配置MAC系统Flutter环境
Flutter是Google开源的构建用户界面(UI)工具包,帮助开发者通过一套代码库高效构建多平台精美应用,支持移动、Web、桌面和嵌入式平台。Flutter开源、免费,拥有宽松的开源协议,适合商业项目。下面来配置环境~原创 2023-01-04 00:30:33 · 3144 阅读 · 0 评论 -
flutter 底部滑动导航,页面滑动同时让底部导航跟着变动,除了点击还可以滑动哦~~
实现点击以及滑动都可以切换导航的效果核心代码完整代码// 输入 imrm 快速生成下面import 'package:flutter/material.dart';import 'Home.dart';import 'HomeNew.dart';import 'Category.dart';import 'User.dart';import 'Cart.dart';class Tabs extends StatefulWidget { const Tabs({Key? key,原创 2021-10-29 23:14:29 · 2284 阅读 · 0 评论 -
flutter 设置Appbar上面的电池显示的状态栏的背景与颜色
写代码,修改了一下Appbar后,发现这个顶部颜色不对劲找到这个文件lib\main.dartimport 'dart:io';import 'package:flutter/services.dart';void main() { if (Platform.isAndroid) { // 设置Appbar上面的电池显示的状态栏的背景与颜色 SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayS原创 2021-10-29 20:22:20 · 1818 阅读 · 1 评论 -
图文并茂记录下重新配置Win10系统Flutter环境--内含Android Studio 下载安装教程
https://blog.csdn.net/sunbinkang/article/details/106935636原创 2021-10-05 22:45:29 · 312 阅读 · 4 评论 -
flutter学习第一天笔记-----学习资源总结
原创 2019-09-03 22:42:16 · 144 阅读 · 0 评论 -
flutter 2.X报错 Bad state: Insecure HTTP is not allowed by platform:
flutter2.x开发遇到的问题 Bad state: Insecure HTTP is not allowed by platform:翻译过来就是:错误状态:平台不允许不安全的HTTP:产生原因:IOS 和 Android 9.0 对网络请求做了一些限制,不能直接访问 Http 域名的地址。解决方案如下:Android 配置找到下图位置,添加这两行代码 android:usesCleartextTraffic="true" android:networkSecurit原创 2021-09-17 01:54:33 · 310 阅读 · 3 评论 -
flutter 2.x运行flutter run 报错Cannot run with sound null safety, because the following dependenciesdon‘
flutter 2.x运行flutter run 报错Cannot run with sound null safety, because the following dependenciesdon’t support null safety:flutter sdk提示不是支持 null safety模式采用下面办法解决问题flutter run --no-sound-null-safetyflutter build apk --no-sound-null-safety...原创 2021-09-17 01:42:43 · 421 阅读 · 0 评论 -
flutter 1.升级2.X在模型类中序列化JSON报错Non-nullable instance field ‘title‘ must be initialized.
flutter 1.升级2.X在模型类中序列化JSON报错Non-nullable instance field 'title' must be initialized. Try adding an initializer expression, or add a field initializer in this constructor, or mark it 'late'.修改方案–添加late原有代码class Autogenerated { List<Result>原创 2021-09-17 00:57:31 · 2069 阅读 · 0 评论 -
Flutter2.X学习之路--调试页面布局好用的办法
Flutter里有个很好用的东西,可以方便我们来进行页面组件的布局调试,话不多说,上代码1.找到main.dart引入rendering.dartimport 'package:flutter/rendering.dart';2.添加main入口页面调试代码void main() { // 调试布局重点代码 debugPaintSizeEnabled=true; runApp(new MyApp());}3.如下图所示4.使用restart,如果你用的VSCODE编辑器,原创 2021-09-14 23:08:55 · 607 阅读 · 0 评论 -
flutter flutter_screenutil Looking up a deactivated widget‘s ancestor is unsafe.
先强调一下,很多问题可以使用reStart更新试一下下!!!使用flutter_screenutil 报错 Looking up a deactivated widget’s ancestor is unsafe.The following assertion was thrown while dispatching notifications for SwiperController:Looking up a deactivated widget’s ancestor is unsafe.At t原创 2021-09-13 01:34:39 · 2106 阅读 · 0 评论 -
flutter_swiper:Another exception was thrown: ScrollController attached to multiple scroll views.
Another exception was thrown: ScrollController attached to multiple scroll views.翻译一下:引发了另一个异常:ScrollController连接到多个滚动视图。Flutter Swiper是一个轮播图组件,内部包含一个Widget List,当这个Widget List数量大于1,就可能会有这种情况解决方案:给Swiper加一个Key即可解决原有代码 return Container( child: As原创 2021-09-13 00:34:11 · 1463 阅读 · 0 评论 -
flutter Error:Cannot run with sound null safety, because the following dependencies don‘t support
学习flutter新版本的路上,真的是一天一个新惊喜啊今天遇到的坑是 Flutter 升级高版本后,运行和build 报错Error: Cannot run with sound null safety, because the following dependenciesdon’t support null safety:解决方法:运行 flutter run --no-sound-null-safetybuildflutter build apk --no-sound-null-原创 2021-09-13 00:00:07 · 987 阅读 · 0 评论 -
Flutter新版本2.X系列--01创建项目
##12222222222222原创 2021-09-12 23:44:09 · 220 阅读 · 0 评论 -
flutter报错The type of the function literal can‘t be inferred because the literal has a block as its b
flutter有一些报错如下The type of the function literal can’t be inferred because the literal has a block as its body.Try adding an explicit type to the variable.dart(top_level_function_literal_block)A value of type ‘String?’ can’t be assigned to a variable of原创 2021-09-12 01:10:57 · 723 阅读 · 0 评论 -
flutter2.x报错解决type (RouteSettings) => Route<dynamic> is not a subtype of type (RouteSettings) => Rou
flutter2.x报错解决type (RouteSettings) => Route is not a subtype of type (RouteSettings) => Route of function result原有代码–main.dartimport 'package:flutter/material.dart';import 'pages/tabs/Tabs.dart';import 'routers/router.dart';void main() { runA原创 2021-09-12 00:20:44 · 1321 阅读 · 0 评论