removed register widget on other platforms

This commit is contained in:
nullpeer
2025-11-30 14:43:55 +03:00
parent 0acf67ce28
commit 7e538be369
2 changed files with 9 additions and 3 deletions

View File

@@ -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:mask_text_input_formatter/mask_text_input_formatter.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
import 'package:platform_info/platform_info.dart';
class Country { class Country {
final String name; final String name;
@@ -479,8 +480,11 @@ class _PhoneEntryScreenState extends State<PhoneEntryScreen>
onCountryChanged: _onCountryChanged, onCountryChanged: _onCountryChanged,
customPrefix: _customPrefix, customPrefix: _customPrefix,
), ),
const SizedBox(height: 16),
Center( (Platform.instance.android || Platform.instance.windows) ? Column(
children: [
const SizedBox(height: 16),
Center(
child: TextButton( child: TextButton(
onPressed: _isTosAccepted onPressed: _isTosAccepted
? () { ? () {
@@ -510,7 +514,8 @@ class _PhoneEntryScreenState extends State<PhoneEntryScreen>
), ),
), ),
), ),
), )]
) : const SizedBox(),
const SizedBox(height: 16), const SizedBox(height: 16),
Row( Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,

View File

@@ -125,6 +125,7 @@ dependencies:
chewie: ^1.7.5 chewie: ^1.7.5
just_audio: ^0.9.40 just_audio: ^0.9.40
platform_info: ^5.0.0
dev_dependencies: dev_dependencies:
flutter_test: flutter_test: