Skip to content

Commit dbb8e0d

Browse files
committed
Refactor VPN client dependency: switch from git-based to local path reference for vpnclient_engine
1 parent 614688b commit dbb8e0d

7 files changed

Lines changed: 407 additions & 891 deletions

File tree

LICENSE

Lines changed: 289 additions & 0 deletions
Large diffs are not rendered by default.

LICENSE.md

Lines changed: 0 additions & 629 deletions
This file was deleted.

LICENSE_ru.md

Lines changed: 0 additions & 69 deletions
This file was deleted.

LICENSE_th.md

Lines changed: 0 additions & 70 deletions
This file was deleted.

lib/pages/main/main_btn.dart

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:flutter_v2ray/flutter_v2ray.dart';
55
import 'package:vpn_client/localization_service.dart';
66
import 'package:vpn_client/vpn_state.dart';
77
import 'package:vpn_client/l10n/app_localizations.dart';
8-
import 'package:vpnclient_engine_flutter/vpnclient_engine_flutter.dart';
8+
import 'package:vpnclient_engine/vpnclient_engine.dart';
99

1010
final FlutterV2ray flutterV2ray = FlutterV2ray(
1111
onStatusChanged: (status) {
@@ -167,10 +167,9 @@ class MainBtnState extends State<MainBtn> with SingleTickerProviderStateMixin {
167167
style: TextStyle(
168168
fontSize: 40,
169169
fontWeight: FontWeight.w600,
170-
color:
171-
_vpnState == VpnConnectionState.connected
172-
? Theme.of(context).colorScheme.primary
173-
: Theme.of(context).colorScheme.secondary,
170+
color: _vpnState == VpnConnectionState.connected
171+
? Theme.of(context).colorScheme.primary
172+
: Theme.of(context).colorScheme.secondary,
174173
),
175174
),
176175
const SizedBox(height: 70),
@@ -183,10 +182,9 @@ class MainBtnState extends State<MainBtn> with SingleTickerProviderStateMixin {
183182
width: 150,
184183
height: 150,
185184
decoration: BoxDecoration(
186-
color:
187-
Theme.of(context)
188-
.colorScheme
189-
.surfaceContainerHighest, // Usar cor do tema conforme sugestão do linter
185+
color: Theme.of(context)
186+
.colorScheme
187+
.surfaceContainerHighest, // Usar cor do tema conforme sugestão do linter
190188
shape: BoxShape.circle,
191189
),
192190
),

0 commit comments

Comments
 (0)