print('我是日志');//打印数据
//打包aar 给Android 原生工程使用
进入as的终端
![image.png](https://upload-images.jianshu.io/upload_images/4238179-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://upload-images.jianshu.io/upload_images/4238179-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: () {}
),
// 隐藏的菜单
],
),