提交 32e6995e authored 作者: yueweilu's avatar yueweilu

适配iOS

上级 206717a2
......@@ -42,6 +42,10 @@ post_install do |installer|
'$(inherited)',
## dart: PermissionGroup.microphone
'PERMISSION_MICROPHONE=1',
'PERMISSION_CAMERA=1',
'PERMISSION_PHOTOS=1',
'PERMISSION_SPEECH_RECOGNIZER=1',
'PERMISSION_MEDIA_LIBRARY=1',
]
end
end
......
......@@ -139,6 +139,6 @@ SPEC CHECKSUMS:
tobias: 22f69183b14af82a2ac8ff698af084c352744e5f
WechatOpenSDK-XCFramework: acdeeda129efbef9532bca8a10c24e1b4b8c7d69
PODFILE CHECKSUM: d88b567994d32cfdf2f8417e66666d472921c85e
PODFILE CHECKSUM: 20687d66987ab3196d4c7c2f789904b2f814ee9d
COCOAPODS: 1.11.2
......@@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPhotoLibraryUsageDescription</key>
<string>紫荆云书请求在您使用期间获取您的相册权限以便更改用户头像或上传笔记</string>
<key>NSCameraUsageDescription</key>
<string>紫荆云书需要使用相机权限进行拍照</string>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
......@@ -40,7 +44,7 @@
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMicrophoneUsageDescription</key>
<string>云书需要使用麦克风进行录音</string>
<string>云书需要使用麦克风进行录音</string>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key>
......
......@@ -109,6 +109,7 @@ class _BookPayPageState extends State<BookPayPage> {
),
),
bottomNavigationBar: SafeArea(
bottom: false,
child:BuildPayCount(
payTap: (){
Console.log('--------------支付------------------');
......@@ -120,12 +121,12 @@ class _BookPayPageState extends State<BookPayPage> {
}, controller: controller,
)),
),
controller.showDetail?SafeArea(
child: Positioned(
controller.showDetail?Positioned(
left: 0.w,
bottom: 50.w,
right: 0.w,
top: 0.w,
child: SafeArea(
child: GestureDetector(
onTap: (){
controller.show();
......
......@@ -17,8 +17,8 @@ class BuildPayCount extends StatelessWidget {
return GetBuilder<BookPayController>(
init: BookPayController(buy: [],context: context),
builder:(controller)=> Container(
padding: EdgeInsets.symmetric(horizontal: 15.w),
height: 55.w,
padding: EdgeInsets.only(left: 15.w,right: 15.w,bottom: Screen.bottomBar),
// height: 55.w + MediaQuery.of(context).padding.bottom,
color: Colors.white,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
......@@ -46,11 +46,15 @@ class BuildPayCount extends StatelessWidget {
GestureDetector(
onTap: payTap,
child: Container(
margin: EdgeInsets.symmetric(vertical: 10.w),
width: 85.w,
height: 35.w,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15.w),
borderRadius: BorderRadius.circular(17.5.w),
color: AppTheme.primary
),
padding: EdgeInsets.symmetric(horizontal:13.5.w,vertical: 8.w),
alignment: Alignment.center,
// padding: EdgeInsets.symmetric(horizontal:13.5.w,vertical: 8.w),
child: Text('确认支付',style: TextStyle(fontSize: 14.w,fontWeight: Fonts.medium,color: Colors.white),),
),
)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论