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

适配iOS

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