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: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,6 +480,9 @@ class _PhoneEntryScreenState extends State<PhoneEntryScreen>
onCountryChanged: _onCountryChanged,
customPrefix: _customPrefix,
),
(Platform.instance.android || Platform.instance.windows) ? Column(
children: [
const SizedBox(height: 16),
Center(
child: TextButton(
@@ -510,7 +514,8 @@ class _PhoneEntryScreenState extends State<PhoneEntryScreen>
),
),
),
),
)]
) : const SizedBox(),
const SizedBox(height: 16),
Row(
crossAxisAlignment: CrossAxisAlignment.center,

View File

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