watermelon_mediator 0.0.5 watermelon_mediator: ^0.0.5 copied to clipboard
A pure dart package to use the Mediator design pattern in all dart projects, specially flutter mobile apps.
import 'package:flutter/material.dart';
import 'application/requests_register/requests_register.dart';
import 'ui/car_list_screen.dart';
void main() {
RequestsRegister();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const CarListScreen(),
);
}
}