flutter_robusta

Last updated:

0 purchases

flutter_robusta Image
flutter_robusta Images
Add to Cart

Description:

flutter robusta

Flutter Robusta #
Providing Material and Cupertino runner extensions to run your Flutter app.
Installing #
Install this package via pub command:
flutter pub pub get flutter_robusta
copied to clipboard
Usage #
Create the runner and use Material/Cupertino to run your app
import 'package:flutter/material.dart';
import 'package:flutter_robusta/flutter_robusta.dart';
import 'package:go_router_plus/go_router_plus.dart';

class HomeScreen extends Screen implements InitialScreen {
@override
Center build(BuildContext context, GoRouterState state) {
return const Center(
child: Text('Home Screen'),
);
}

@override
String get routeName => 'home';

@override
String get routePath => '/home';
}

final runner = Runner(
extensions: [
ImplementingCallbackExtension(),
FlutterAppExtension(
routerSettings: RouterSettings(
screenFactories: [
(_) => HomeScreen(),
],
),
),
],
);


Future<void> main() => runner.run();
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.