softcore 0.2.0 copy "softcore: ^0.2.0" to clipboard
softcore: ^0.2.0 copied to clipboard

flutter project clean core arch.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:softcore/softMaterials.dart';
import 'package:support/config/Themes/themes.dart';

import 'injector.dart';

Future<void> main() async {
  SystemChrome.setSystemUIOverlayStyle(
      const SystemUiOverlayStyle(statusBarColor: Colors.transparent));
  
  // Optionally configure the DefaultErrorWidgetFactory if needed
  // For instance, you can set up default configurations for error widgets
  // DefaultErrorWidgetFactory.configureDefaults(...);

  runApp(const RestartWidget(child: MyApp()));
}

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

  // This widget is the root of your application.

  @override
  Widget build(BuildContext context) {
    SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
      statusBarIconBrightness: Brightness.dark,
    ));

    return SoftCoreApp(
      title: 'Flutter Demo',
      theme: kAppTheme,
      onInit: (){

      },
      errorWidgetFactory: DefaultStatesWidgetFactory(),
      errorHandler: DefaultErrorHandler.instance,
      dialogsManager: DefaultDialogsManager(),
      home: Padding(
        padding: const EdgeInsets.all(8.0),
        child: Container(
          color: Colors.white,
          child: const Column(
            crossAxisAlignment: CrossAxisAlignment.stretch,
            mainAxisAlignment: MainAxisAlignment.center,
          ),
        ),
      ), dependencyInjector: MyCustomDependencyInjector(),
    );
  }
}
3
likes
30
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

flutter project clean core arch.

License

unknown (license)

Dependencies

animation_wrappers, built_value, dio, flutter, flutter_bloc, flutter_localizations, flutter_svg, get, get_it, injectable, intl, platform, rxdart

More

Packages that depend on softcore