safearea, still no idea why white screen on physical ios with testflight

This commit is contained in:
open-trade 2021-08-20 03:50:10 +08:00
parent 6c18645561
commit bcd550ebef
5 changed files with 32 additions and 24 deletions

View File

@ -1,2 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
flutter build ipa --release --obfuscate --split-debug-info=./split-debug-info #flutter build ipa --release --obfuscate --split-debug-info=./split-debug-info
flutter build ipa --release

2
flutter_hbb/ios_x64.sh Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
cargo build --release --target x86_64-apple-ios

View File

@ -25,6 +25,7 @@ class App extends StatelessWidget {
child: ChangeNotifierProvider.value( child: ChangeNotifierProvider.value(
value: FFI.canvasModel, value: FFI.canvasModel,
child: MaterialApp( child: MaterialApp(
debugShowCheckedModeBanner: false,
title: 'RustDesk', title: 'RustDesk',
theme: ThemeData( theme: ThemeData(
primarySwatch: Colors.blue, primarySwatch: Colors.blue,

View File

@ -357,29 +357,33 @@ class _RemotePageState extends State<RemotePage> {
} }
}, },
child: Container( child: Container(
color: MyTheme.canvasColor, color: Colors.black,
child: Stack(children: [ child: SafeArea(
ImagePaint(), child: Container(
CursorPaint(), color: MyTheme.canvasColor,
getHelpTools(), child: Stack(children: [
SizedBox( ImagePaint(),
width: 0, CursorPaint(),
height: 0, getHelpTools(),
child: !_showKeyboard SizedBox(
? Container() width: 0,
: TextFormField( height: 0,
textInputAction: TextInputAction.newline, child: !_showKeyboard
autocorrect: false, ? Container()
enableSuggestions: false, : TextFormField(
focusNode: _focusNode, textInputAction:
maxLines: null, TextInputAction.newline,
initialValue: autocorrect: false,
_value, // trick way to make backspace work always enableSuggestions: false,
keyboardType: TextInputType.multiline, focusNode: _focusNode,
onChanged: handleInput, maxLines: null,
initialValue:
_value, // trick way to make backspace work always
keyboardType: TextInputType.multiline,
onChanged: handleInput,
),
), ),
), ]))))),
]))),
)), )),
); );
} }

View File

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.1.7+10 version: 1.1.7+11
environment: environment:
sdk: ">=2.7.0 <3.0.0" sdk: ">=2.7.0 <3.0.0"