|
@@ -23,6 +23,7 @@ class _MyAppState extends State<MyApp> {
|
|
|
String _isRunAdminEerr = 'Unknown';
|
|
|
String _isAdmin = 'no';
|
|
|
String _isRunPassName = 'no';
|
|
|
+ String isPPoe = 'no';
|
|
|
final _wlBaseHelpPlugin = WlBaseHelp();
|
|
|
|
|
|
@override
|
|
@@ -31,6 +32,14 @@ class _MyAppState extends State<MyApp> {
|
|
|
initPlatformState();
|
|
|
}
|
|
|
|
|
|
+ Future<void> isDialUpEnabled() async {
|
|
|
+ if(await _wlBaseHelpPlugin.isDialUpEnabled()){
|
|
|
+ isPPoe = "yes";
|
|
|
+ } else {
|
|
|
+ isPPoe = "no";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
Future<void> initBuild() async {
|
|
|
var baseConfig = BasicConfig(
|
|
|
mixedPort: 9788,
|
|
@@ -272,6 +281,13 @@ class _MyAppState extends State<MyApp> {
|
|
|
onPressed: () async{
|
|
|
await initBuild();
|
|
|
}, child: Text('构建clash config')),
|
|
|
+ const SizedBox(
|
|
|
+ height: 20,
|
|
|
+ ),
|
|
|
+ ElevatedButton(
|
|
|
+ onPressed: () async{
|
|
|
+ await isDialUpEnabled();
|
|
|
+ }, child: Text(isPPoe)),
|
|
|
],
|
|
|
),
|
|
|
),
|