jh_debug 0.3.3 jh_debug: ^0.3.3 copied to clipboard
jh_debug调试插件! The debugging plug-in above the APP. Easy-to-use console plugin, More feature details....
import 'package:flutter/material.dart';
import 'package:jh_debug/jh_debug.dart';
import 'TestPage.dart';
import 'DetailsPage.dart';
void main() {
jhDebugMain(
appChild: MyApp(),
debugMode: DebugMode.inConsole,
);
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
print('main');
return MaterialApp(
// home: TestPage(),
theme: ThemeData.dark(),
navigatorKey: jhDebug.getNavigatorKey,
routes: {
'/': (BuildContext context) => TestPage(),
'/detailsPage': (BuildContext context) => DetailsPage(),
},
);
}
}