随笔分类 - 3-Flutter
摘要:介绍 https://developer.apple.com/testflight/ 上架流程 https://help.apple.com/app-store-connect/#/devdc42b26b8 1.输入测试信息 https://appstoreconnect.apple.com/ 进入
阅读全文
摘要:structure and navigation Appbar BottomNavigationBar Drawer MaterialApp Scaffold SliverAppBar TabBar TabBarView WidgetsApp
阅读全文
摘要:Divider 分割线 Column( children: [ Container( color: Colors.amber, child: const Center( child: Text('上'), ), ), Divider( //分割线颜色 color: Colors.black, //前
阅读全文
摘要:一、material风格 # Buttons MaterialButton\RaisedButton\FlatButton\IconButton\FloatingActionButton\OutlineButton\DropdownButton # Dialogs, alerts, and pane
阅读全文
摘要:https://flutter.github.io/cupertino_icons/
阅读全文
摘要:在iosapp同级路径下 flutter create -t module --org com.example my_flutter 在iosapp的跟路径下 pod init 在生成的podfile文件中添加 flutter_application_path = '../my_flutter' l
阅读全文
摘要:flutter添加到android原生 1.创建一个flutter module flutter create -t module --org com.example my_flutter 2.在原生build.gradle下 android { //... compileOptions { sou
阅读全文
摘要:一、flutter调用原生方法 1.调用android flutter端 class _MyHomePageState extends State<MyHomePage> { static const MethodChannel methodChannel = MethodChannel("chan
阅读全文
摘要:一、生成二维码 https://pub.flutter-io.cn/packages/qr_flutter qr_flutter: ^3.1.0 QrImage( data: "1234567890", version: QrVersions.auto, size: 200.0, ), 全 //生成
阅读全文
摘要:引入 signalr_core: 1.0.5
阅读全文
摘要:https://grpc.io/docs/languages/dart/quickstart/ 1.安装brew https://brew.sh/index_zh-cn.html ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Home
阅读全文
摘要:一、内联反序列化 把JSON字符串转换成 Map<String, dynamic> 或者 List<dynamic> import 'dart:convert'; main(List<String> args) { JsonCodec json = new JsonCodec(); String s
阅读全文
摘要:warp Wrap( //控件间的对齐方式 alignment:WrapAlignment.spaceBetween, //垂直或水平排列。默认水平 direction:Axis.horizontal, spacing: 30.0, //控件间的距离 runSpacing: 30.0, // 行间距
阅读全文
摘要:一、Android 1.引入插件 permission_handler: 5.0.1+1 #权限请求 path_provider: 1.6.14 #路径 flutter_downloader: 1.4.4 #下载 2. androidmanifest.xml <!--网络权限--> <uses-pe
阅读全文
摘要:1.MaterialButton MaterialApp( home: Scaffold( appBar: AppBar( title: Text("测试"), ), body: Center( child: MaterialButton( color: Colors.blue, textColor
阅读全文
摘要:Input and selections Checkbox Date & Time Pickers Radio Slider Switch TextField
阅读全文
摘要:import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; void main() => runApp(MyApp()); class MyApp extends StatefulWidget { @override _MyAppState createState() => _MyAppState(
阅读全文
摘要:1.SimpleDialog 简单对话框 class _MyHomePageState extends State<MyHomePage> { dialog() { showDialog(context: context, builder: (BuildContext context){ retur
阅读全文