「?.」——代表非空访问,例如「myObject?.someProperty」,等价于——「(myObject != null) ? myObject.someProperty : null」「??」——代表避空判断,例如「a ?? 3」a为空时,返回3「??=」——同样是避空赋值,例如「a ??= 3」a为空时,a赋值为3
Flutter

Flutter
Flutter getx Get.theme

Flutter
dart 「?.」、「??」与「??=」

Flutter
GetX™ 框架的官方 CLI。
文档支持语言pt_BRen_USzh_CN - 本文件GetX™ 框架的官

Flutter
flutter drawer 自定义图标 icon 手动打开drawer
方法1:GlobalKeyimport "package:flutter/material.dart";class Test extends StatefulWidget { @override _TestState createState() => new _TestSta

Flutter
安卓App制作常用图标尺寸规范
1.程序启动图标:HDPI (High Density Screen,240 DPI),其图标大小为72x72px。 MDPI (Medium Density Screen,160 DPI),其图标大小为48x48px。LDPI (Low Density Screen,120 DPI),其图标大小为36x36px。xxhdpi(

Flutter
Flutter StatefulWidget 和 StatelessWidget 之间如何选择
StatefulWidget 和 StatelessWidget 的区别:StatefulWidget 是有 State 的,StatelessWidget 是无 State 的。当你以后选择用 StatelessWidget 还是 StatefulWidget 时,只要考虑 UI 是否需要改变,如果需要改变,就用 StatefulW

Flutter
Flutter如何打破紧约束1:通过 UnconstrainedBox [解除约束]
1. 什么是紧约束

Flutter
flutter_inner_drawer 报错
覆盖 github 修改的新版本:https://github.com/AhmedCodor/flutter_inner_drawer/blob/n

Flutter
json_to_dart 自动生成模型类
https://autocode.icu/jsontodart (推荐)https://javiercbk.github.io/json_to_dart/

Flutter
flutter 设置沉浸式状态栏并修改字体颜色
实现代码:import 'dart:io';import 'package:flutter/services.dart';void main() { runApp(MyApp()); // 沉浸式状态栏 if (Platform.isAndroid) {

Flutter
Flutter去掉AppBar避免body溢出到状态栏
没有AppBar的Flutter,如果不在Scaffold中使用AppBar会发现默认是沉浸式。预留出状态栏的高度方法:appBar: PreferredSize( preferredSize: Size.fromHeight(MediaQuery.of(context)

Flutter
Flutter不同终端屏幕适配方案
Flutter不同终端屏幕适配方案: flutter_screenutil