плашка хочешь обновить спуф
This commit is contained in:
@@ -4,7 +4,7 @@ import 'package:gwid/theme_provider.dart';
|
||||
|
||||
class BypassScreen extends StatelessWidget {
|
||||
final bool isModal;
|
||||
|
||||
|
||||
const BypassScreen({super.key, this.isModal = false});
|
||||
|
||||
@override
|
||||
@@ -44,8 +44,8 @@ class BypassScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
"Эта функция позволяет отправлять сообщения заблокированным пользователям, "
|
||||
"даже если они заблокировали вас. Включите эту опцию, если хотите обойти "
|
||||
"Эта функция позволяет отправлять сообщения заблокированным пользователям. "
|
||||
"Включите эту опцию, если хотите обойти "
|
||||
"стандартные ограничения мессенджера.",
|
||||
style: TextStyle(color: colors.onSurfaceVariant),
|
||||
),
|
||||
@@ -104,7 +104,7 @@ class BypassScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
"Важно знать",
|
||||
"ВНИМНИЕ🚨🚨🚨",
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: colors.primary,
|
||||
@@ -114,7 +114,7 @@ class BypassScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
"Используя любую из bypass функций мы не несем ответственности за ваш аккаунт",
|
||||
"Используя любую из bypass функций, вас возможно накажут",
|
||||
style: TextStyle(
|
||||
color: colors.onSurfaceVariant,
|
||||
fontSize: 14,
|
||||
@@ -133,7 +133,6 @@ class BypassScreen extends StatelessWidget {
|
||||
backgroundColor: Colors.transparent,
|
||||
body: Stack(
|
||||
children: [
|
||||
|
||||
GestureDetector(
|
||||
onTap: () => Navigator.of(context).pop(),
|
||||
child: Container(
|
||||
@@ -142,7 +141,6 @@ class BypassScreen extends StatelessWidget {
|
||||
color: Colors.black.withOpacity(0.3),
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
Center(
|
||||
child: Container(
|
||||
@@ -162,7 +160,6 @@ class BypassScreen extends StatelessWidget {
|
||||
),
|
||||
child: Column(
|
||||
children: [
|
||||
|
||||
Container(
|
||||
padding: const EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
@@ -196,7 +193,6 @@ class BypassScreen extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
Expanded(
|
||||
child: ListView(
|
||||
@@ -247,11 +243,11 @@ class BypassScreen extends StatelessWidget {
|
||||
builder: (context, themeProvider, child) {
|
||||
return SwitchListTile(
|
||||
title: const Text("Включить обход"),
|
||||
subtitle: const Text("Активировать функции обхода ограничений"),
|
||||
subtitle: const Text(
|
||||
"Активировать функции обхода ограничений",
|
||||
),
|
||||
value: false, // Временно отключено
|
||||
onChanged: (value) {
|
||||
|
||||
},
|
||||
onChanged: (value) {},
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -277,20 +273,14 @@ class BypassScreen extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
color: colors.primaryContainer.withOpacity(0.3),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: Border.all(
|
||||
color: colors.outline.withOpacity(0.3),
|
||||
),
|
||||
border: Border.all(color: colors.outline.withOpacity(0.3)),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.info_outline,
|
||||
color: colors.primary,
|
||||
size: 20,
|
||||
),
|
||||
Icon(Icons.info_outline, color: colors.primary, size: 20),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
"Информация",
|
||||
|
||||
@@ -17,6 +17,7 @@ class _KometMiscScreenState extends State<KometMiscScreen> {
|
||||
bool _isAutoUpdateEnabled = true;
|
||||
bool _showUpdateNotification = true;
|
||||
bool _enableWebVersionCheck = false;
|
||||
bool _showSpoofUpdateDialog = true;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -28,12 +29,13 @@ class _KometMiscScreenState extends State<KometMiscScreen> {
|
||||
Future<void> _loadUpdateSettings() async {
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
setState(() {
|
||||
|
||||
_isAutoUpdateEnabled = prefs.getBool('auto_update_enabled') ?? true;
|
||||
_showUpdateNotification =
|
||||
prefs.getBool('show_update_notification') ?? true;
|
||||
_enableWebVersionCheck =
|
||||
prefs.getBool('enable_web_version_check') ?? false;
|
||||
_showSpoofUpdateDialog =
|
||||
prefs.getBool('show_spoof_update_dialog') ?? true;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -65,7 +67,6 @@ class _KometMiscScreenState extends State<KometMiscScreen> {
|
||||
Color statusColor;
|
||||
final defaultTextColor = Theme.of(context).textTheme.bodyMedium?.color;
|
||||
|
||||
|
||||
final isDesktopOrIOS =
|
||||
Platform.isWindows ||
|
||||
Platform.isMacOS ||
|
||||
@@ -206,6 +207,24 @@ class _KometMiscScreenState extends State<KometMiscScreen> {
|
||||
_updateSettings('show_update_notification', value);
|
||||
},
|
||||
),
|
||||
const Divider(height: 1),
|
||||
SwitchListTile(
|
||||
secondary: Icon(
|
||||
Icons.sync_problem_outlined,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
title: const Text("Диалог обновлений спуфа"),
|
||||
subtitle: const Text(
|
||||
"Показывать диалог проверки обновлений спуфа при запуске",
|
||||
),
|
||||
value: _showSpoofUpdateDialog,
|
||||
onChanged: (bool value) {
|
||||
setState(() {
|
||||
_showSpoofUpdateDialog = value;
|
||||
});
|
||||
_updateSettings('show_spoof_update_dialog', value);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -239,7 +258,6 @@ class _KometMiscScreenState extends State<KometMiscScreen> {
|
||||
backgroundColor: Colors.transparent,
|
||||
body: Stack(
|
||||
children: [
|
||||
|
||||
GestureDetector(
|
||||
onTap: () => Navigator.of(context).pop(),
|
||||
child: Container(
|
||||
@@ -249,7 +267,6 @@ class _KometMiscScreenState extends State<KometMiscScreen> {
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
Center(
|
||||
child: Container(
|
||||
width: 400,
|
||||
@@ -268,7 +285,6 @@ class _KometMiscScreenState extends State<KometMiscScreen> {
|
||||
),
|
||||
child: Column(
|
||||
children: [
|
||||
|
||||
Container(
|
||||
padding: const EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
@@ -303,7 +319,6 @@ class _KometMiscScreenState extends State<KometMiscScreen> {
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
Expanded(
|
||||
child: ListView(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
@@ -367,6 +382,22 @@ class _KometMiscScreenState extends State<KometMiscScreen> {
|
||||
);
|
||||
},
|
||||
),
|
||||
SwitchListTile(
|
||||
title: const Text("Диалог обновлений спуфа"),
|
||||
subtitle: const Text(
|
||||
"Показывать диалог проверки обновлений спуфа при запуске",
|
||||
),
|
||||
value: _showSpoofUpdateDialog,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
_showSpoofUpdateDialog = value;
|
||||
});
|
||||
_updateSettings(
|
||||
'show_spoof_update_dialog',
|
||||
value,
|
||||
);
|
||||
},
|
||||
),
|
||||
SwitchListTile(
|
||||
title: const Text("Проверка веб-версии"),
|
||||
subtitle: const Text(
|
||||
@@ -403,7 +434,6 @@ class _KometMiscScreenState extends State<KometMiscScreen> {
|
||||
Color statusColor;
|
||||
final defaultTextColor = Theme.of(context).textTheme.bodyMedium?.color;
|
||||
|
||||
|
||||
final isDesktopOrIOS =
|
||||
Platform.isWindows ||
|
||||
Platform.isMacOS ||
|
||||
@@ -494,6 +524,24 @@ class _KometMiscScreenState extends State<KometMiscScreen> {
|
||||
_updateSettings('show_update_notification', value);
|
||||
},
|
||||
),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
secondary: Icon(
|
||||
Icons.sync_problem_rounded,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
title: const Text("Диалог обновлений спуфа"),
|
||||
subtitle: const Text(
|
||||
"Показывать диалог проверки обновлений спуфа при запуске",
|
||||
),
|
||||
value: _showSpoofUpdateDialog,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
_showSpoofUpdateDialog = value;
|
||||
});
|
||||
_updateSettings('show_spoof_update_dialog', value);
|
||||
},
|
||||
),
|
||||
SwitchListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
secondary: Icon(
|
||||
|
||||
Reference in New Issue
Block a user