diff --git a/lib/screens/phone_entry_screen.dart b/lib/screens/phone_entry_screen.dart index 56bd097..9100dcd 100644 --- a/lib/screens/phone_entry_screen.dart +++ b/lib/screens/phone_entry_screen.dart @@ -13,6 +13,7 @@ import 'package:gwid/screens/tos_screen.dart'; // Импорт экрана ToS import 'package:mask_text_input_formatter/mask_text_input_formatter.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:url_launcher/url_launcher.dart'; +import 'package:platform_info/platform_info.dart'; class Country { final String name; @@ -479,8 +480,11 @@ class _PhoneEntryScreenState extends State onCountryChanged: _onCountryChanged, customPrefix: _customPrefix, ), - const SizedBox(height: 16), - Center( + + (Platform.instance.android || Platform.instance.windows) ? Column( + children: [ + const SizedBox(height: 16), + Center( child: TextButton( onPressed: _isTosAccepted ? () { @@ -510,7 +514,8 @@ class _PhoneEntryScreenState extends State ), ), ), - ), + )] + ) : const SizedBox(), const SizedBox(height: 16), Row( crossAxisAlignment: CrossAxisAlignment.center, diff --git a/pubspec.yaml b/pubspec.yaml index eed5c24..634a56b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -125,6 +125,7 @@ dependencies: chewie: ^1.7.5 just_audio: ^0.9.40 + platform_info: ^5.0.0 dev_dependencies: flutter_test: