我使用以下方法获取应用程序名称和packageName,但是我需要iPhone用户的Bundle ID。我想分享应用程序链接。我在android中做到了,但在iphone中我需要绑定ID。
Future<Null> _initPackageInfo() async {
final PackageInfo info = await PackageInfo.fromPlatform();
setState(() {
_packageInfo = info;
packageName = info.packageName;
appName = info.appName;
buildNumber = info.buildNumber;
});
}
Run Code Online (Sandbox Code Playgroud) 她是我用于显示器的代码,但问题是我为扫描二维码所做的工作。请帮我。
Widget camera() {
return Stack(
alignment: Alignment.center,
children: <Widget>[
new Container(
decoration: BoxDecoration(
border: Border.all(color: Colors.myColor, width: 1.0)),
padding: EdgeInsets.all(4.0),
child: new SizedBox(
height: MediaQuery.of(context).size.height / 1.5,
width: MediaQuery.of(context).size.width / 1.5,
child: new AspectRatio(
aspectRatio: controller.value.aspectRatio,
child: CameraPreview(controller),
),
),
),
new Container(
height: 100.0,
width: 100.0,
decoration: BoxDecoration(
border: Border.all(color: Colors.myColor, width: 2.0)),
)
],
);
}
Run Code Online (Sandbox Code Playgroud) flutter ×2