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

unlistedoutdated

Suga Core Package.

example/lib/main.dart

import 'package:example/injector.dart';
import 'package:example/ui/count/count_page.dart';
import 'package:flutter/material.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await setupInjector();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: CountPage(),
    );
  }
}