general_system_device 0.0.52 copy "general_system_device: ^0.0.52" to clipboard
general_system_device: ^0.0.52 copied to clipboard

discontinued

GeneralSystemDevice Library for help you integrate any package commong used like permission, and many more only use one library

example/lib/main.dart

import 'package:example/page/home/home.dart';
import 'package:flutter/material.dart';
import 'package:general_system_device/flutter/flutter.dart';
import 'package:general_system_device_lib_flutter/generalSystemDevice_system_device_lib_flutter.dart';

void main(List<String> args) {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(const GeneralSystemDeviceExampleMainApp());
}

class GeneralSystemDeviceExampleMainApp extends StatelessWidget {
  static GeneralSystemDeviceLibFlutterApp generalSystemDevice_system_deviceLibFlutterApp = GeneralSystemDeviceLibFlutterApp();
  static GeneralSystemDeviceFlutter generalSystemDevice_system_deviceFlutter = GeneralSystemDeviceFlutter();
  const GeneralSystemDeviceExampleMainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return GeneralSystemDeviceLibFlutterAppMain(
      generalSystemDevice_system_deviceLibFlutterApp: generalSystemDevice_system_deviceLibFlutterApp,
      builder: (themeMode, lightTheme, darkTheme, widget) {
        final MaterialApp materialApp = MaterialApp(
          themeMode: themeMode,
          theme: lightTheme,
          darkTheme: darkTheme,
          home: const GeneralSystemDeviceExampleApp(),
          debugShowCheckedModeBanner: false,
        );
        return materialApp;
      },
    );
  }
}

class GeneralSystemDeviceExampleApp extends StatefulWidget {
  const GeneralSystemDeviceExampleApp({super.key});

  @override
  State<GeneralSystemDeviceExampleApp> createState() => _GeneralSystemDeviceExampleAppState();
}

class _GeneralSystemDeviceExampleAppState extends State<GeneralSystemDeviceExampleApp> {
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    WidgetsBinding.instance.addPostFrameCallback((d) {
      task();
    });
  }

  task() async {
    setState(() {});
    Future(() async {
      GeneralSystemDeviceExampleMainApp.generalSystemDevice_system_deviceLibFlutterApp.initState(
        context: context,
        themeMode: GeneralSystemDeviceExampleMainApp.generalSystemDevice_system_deviceLibFlutterApp.themeMode,
        onSet: () {
          setState(() {});
        },
      );
      context.navigator().pushReplacement(MaterialPageRoute(
        builder: (context) {
          return const HomePageGeneralSystemDeviceApp();
        },
      ));
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: CircularProgressIndicator(
          color: context.theme.indicatorColor,
        ),
      ),
    );
  }
}
0
likes
0
points
681
downloads

Publisher

unverified uploader

Weekly Downloads

GeneralSystemDevice Library for help you integrate any package commong used like permission, and many more only use one library

Repository (GitHub)
View/report issues

Topics

#general-system-device #system #device #plugin #media

Documentation

Documentation

Funding

Consider supporting this project:

github.com
github.com

License

unknown (license)

Dependencies

camera, camera_windows, collection, file_picker, flutter, flutter_background, general_audio, general_lib, general_lib_flutter, html, image, io_universe, media_universe, media_universe_flutter, path, permission_handler, wakelock_plus, yaml

More

Packages that depend on general_system_device