Advertisement
FlyFar

lib/main.dart

Jul 25th, 2023
820
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.24 KB | Cybersecurity | 0 0
  1. import 'package:client/func/check.dart';
  2. import 'package:client/screens/show_db.dart';
  3. import 'package:client/screens/what_db.dart';
  4. import 'package:flutter/material.dart';
  5.  
  6. Future<void> main() async {
  7.   WidgetsFlutterBinding.ensureInitialized();
  8.   bool signIn = await check();
  9.   runApp(MyApp(
  10.     sign_in: signIn,
  11.   ));
  12. }
  13.  
  14. class MyApp extends StatelessWidget {
  15.   const MyApp({
  16.     super.key,
  17.     required this.sign_in,
  18.   });
  19.  
  20.   final bool sign_in;
  21.  
  22.   @override
  23.   Widget build(BuildContext context) {
  24.     return MaterialApp(
  25.       title: 'Client Keylogger Viewer',
  26.       theme: ThemeData(
  27.         colorScheme: const ColorScheme(
  28.           brightness: Brightness.dark,
  29.           primary: Colors.blueGrey,
  30.           onPrimary: Colors.blueGrey,
  31.           secondary: Colors.white,
  32.           onSecondary: Colors.white,
  33.           error: Colors.black,
  34.           onError: Colors.red,
  35.           background: Colors.black,
  36.           onBackground: Colors.black,
  37.           surface: Colors.blueGrey,
  38.           onSurface: Colors.black,
  39.         ),
  40.         textTheme: const TextTheme(bodyText2: TextStyle(color: Colors.white70)),
  41.       ),
  42.       home: sign_in  ? const ShowDb() : const MyHomePage(),
  43.       // home: const Loading(),
  44.     );
  45.   }
  46. }
Tags: dart lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement