eva 1.1.0 copy "eva: ^1.1.0" to clipboard
eva: ^1.1.0 copied to clipboard

discontinued

Event Architecture - A multithread event driven clean architecture framework

example/lib/main.dart

import 'package:eva/eva.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

import 'app/environments/development_environment.dart';
import 'app/environments/production_environment.dart';
import 'app/presentation/to_do_app.dart';

Future<void> main() async {
  // STEP#1:
  // We pick an environment based on the current debug/release mode
  // and ask Eva to use it (check any of the classes below to
  // see what they do. In this example, they are the same,
  // except for the minLogLevel.
  //
  // Sometimes, the only difference between development and
  // production is an URL (so each class can have a
  // `String get serverUrl;` so each environment can determine
  // to which API to point).
  //
  // You can have as many environments as you want, such as test,
  // development, homologation, production, beta, etc.
  await Eva.useEnvironment(
    () => kDebugMode ? const DevelopmentEnvironment() : const ProductionEnvironment(),
    useMultithreading: false,
  );

  // That's it. Eva requires only the one line of code above.
  runApp(const ToDoApp());
}
31
likes
0
pub points
0%
popularity

Publisher

verified publisherjc.kodel.com.br

Event Architecture - A multithread event driven clean architecture framework

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, kfx_dependency_injection, meta, rxdart

More

Packages that depend on eva