Flutter 日常

2019-12-03  本文已影响0人  Albert新荣
print('我是日志');//打印数据

//打包aar 给Android 原生工程使用
进入as的终端
![image.png](https://img.haomeiwen.com/i4238179/50522e2306cdbdb5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

cd .android
./gradlew flutter:assembleDebug //打开./adnroid/build/outputs/aar

[图片上传失败...(image-3188-1575547788010)]


//打包framework 给ios 原生工程使用
进入as的终端
![image.png](https://img.haomeiwen.com/i4238179/50522e2306cdbdb5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

//flutter packages get
//flutter build ios --release --no-codesign //--debug 替换对应的测试或者生产,产生对应的包



//appbar IOS 称为导航栏
       appBar: new AppBar(
          title: new Text('loins'),
          leading: new Icon(Icons.menu),
          backgroundColor: Color(0XFFF36926),
          centerTitle: true,
          actions: <Widget>[
            // 非隐藏的菜单
            new IconButton(
                icon: new Icon(Icons.message),
                tooltip: 'Add Alarm',
                onPressed: () {}
            ),
            // 隐藏的菜单
          ],
        ),

image.png
上一篇 下一篇

猜你喜欢

热点阅读