shindenshin 0.0.12 copy "shindenshin: ^0.0.12" to clipboard
shindenshin: ^0.0.12 copied to clipboard

outdated

Layer communication package. It helps to develop data layer with models and API connectors, which will be used by BLoC to build UI.

example/lib/main.dart

import 'package:example/cubit/app_navigator_cubit.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

import 'store/store.dart';
import 'views/main/main.dart';

void main() {
  runApp(const Application());
}

class Application extends StatefulWidget {
  const Application({Key? key}) : super(key: key);

  @override
  State<Application> createState() => _ApplicationState();
}

class _ApplicationState extends State<Application> {
  final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
  final Store store = Store();

  @override
  Widget build(BuildContext context) {
    return BlocProvider<AppNavigatorCubit>(
      create: (_) => AppNavigatorCubit(store),
      child: Main(
        store: store,
        navigatorKey: navigatorKey,
      ),
    );
  }
}
2
likes
0
points
327
downloads

Publisher

unverified uploader

Weekly Downloads

Layer communication package. It helps to develop data layer with models and API connectors, which will be used by BLoC to build UI.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, equatable, flutter, flutter_bloc, hive, hive_flutter

More

Packages that depend on shindenshin