whale 1.1.9 copy "whale: ^1.1.9" to clipboard
whale: ^1.1.9 copied to clipboard

outdated

A flutter navigation 2.0 router for mobile app

example/lib/main.dart

import 'package:example/views/home_view.dart';
import 'package:flutter/material.dart';
import 'package:whale/whale.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      routeInformationParser: Whale.getRouteInformationParser(),
      routerDelegate:
          Whale.getRouterDelegate(view: const HomeView(), observers: []),
      backButtonDispatcher: Whale.getBackButtonDispatcher(),
    );
  }
}
0
likes
0
points
62
downloads

Publisher

verified publisherbebe-soft.com

Weekly Downloads

A flutter navigation 2.0 router for mobile app

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on whale