INNER CODE UNIT · Dart

MyApp

aayush2622/Dartotsu · lib/main.dart:214

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    final themeManager = Provider.of<ThemeNotifier>(context);
    final isDarkMode = themeManager.isDarkMode;
    SystemChrome.setSystemUIOverlayStyle(
      const SystemUiOverlayStyle(
        statusBarColor: Colors.transparent,
        systemNavigationBarColor: Colors.transparent,
        systemNavigationBarDividerColor: Colors.transparent,
      ),
    );
    return Listener(
      onPointerDown: (event) {
        if (event.buttons == kBackMouseButton) {
          if (Navigator.canPop(Get.context!)) Get.back();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…