跳到主要内容

Posts · flutter

flutter

共 113 篇文章。 Dart · 跨端应用

2021年07月11日 flutter

flutter-android启动时全屏显示图片

更改 android\\app\\src\\main\\res\\drawable\\launch_background.xml <?xml version="1.0" encoding="utf-8"?><layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@

2021年07月11日 flutter

flutter全屏的方法

方法1:// to hide only bottom bar:SystemChrome.setEnabledSystemUIOverlays ([SystemUiOverlay.top]);// to hide only status bar: SystemChrome.setEnabledSystemUIOverlays ([SystemUiOverlay.bottom]);// to hi

2021年07月10日 flutter

PreferredSize 不对其子控件施加任何约束

PreferredSize此控件不对其子控件施加任何约束,并且不以任何方式影响孩子的布局。 常用来自定义AppBar和AppBar.bottom(PreferredSize子控件为AppBar或者AppBar.bottom)Scaffold( appBar: PreferredSize(

2021年07月07日 flutter

Dart之字符串(String)的相关方法总结

字符串定义 使用单引号或双引号 String a = "abcdefg";String b = '12345'; 创建多行字符串,保留内在格式 使用三个单引号或三个双引号 创建多行字符串,保留内在格式,如换行和缩进等,里面写什么输出就是什么

2021年06月29日 flutter

flutter新版按钮常用设置

textButtonTheme: TextButtonThemeData( style: ButtonStyle( backgroundColor: MaterialStateProperty.all<Color>(Colors.transparent),

Flutter 混淆打包,签名等问题 flutter
2021年06月13日 flutter

Flutter 混淆打包,签名等问题

混淆Dart代码Flutter 1.16.2 以上默认支持混淆,不需要特殊设置,只需要在构建命令后面加上--obfuscate --split-debug-info=/<project-name>/<directory>具体可看官方文档:混淆Dart代码构建发布包具体配置请看官方文档(只

2021年06月09日 flutter

flutter新版dio封装

分析需求为什么要封装? 全局token验证 自定义拦截器 缓存处理 统一封装业务错误逻辑 代理配置 重试机制 log输出 自定义解析,数据脱壳要初始化哪些配置? 域名 代理地址 cookie本地缓存地址 超时时间 自定义拦截

2021年06月05日 flutter

使用IntelliJ IDEA编辑flutter安卓代码

To configure the location of the Android SDK: In Preferences > Plugins, enable Android Support if you haven’t already. Right-click the android folder in the Project view, and select Open Module

2021年06月01日 flutter

flutter去除滚动部件ListView等阴影微光

方法1:The following ScrollBehavior will remove the glow effect entirely :class MyBehavior extends ScrollBehavior { @override Widget buildViewportChrome( BuildContext context, Widget child, Axis

2021年06月01日 flutter

flutter判断客户端是否为安卓

UI中 Theme.of(context).platform == TargetPlatform.android 初始化器 import 'dart:io' Platform.isAndroid

第 7 / 12 页 · 共 113 篇

WeChat

扫码加我微信

微信二维码