theseus_navigator 0.8.3 theseus_navigator: ^0.8.3 copied to clipboard
Theseus Navigator is based on Navigator 2.0 / Router and offers declarative navigation scheme, easy API, supports deeplinks, nested navigators and more.
// ignore_for_file: public_member_api_docs
import 'package:flutter/material.dart';
import 'navigation.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: 'Theseus Navigator Demo',
theme: Theme.of(context).copyWith(
dividerColor: Colors.transparent,
colorScheme: ColorScheme.fromSwatch().copyWith(
primary: Colors.blueGrey,
secondary: Colors.amber,
// secondaryContainer: Colors.blue,
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
backgroundColor: Colors.amber,
),
),
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
selectedItemColor: Colors.blue,
),
tabBarTheme: const TabBarTheme(
labelColor: Colors.blue,
unselectedLabelColor: Colors.blueGrey,
)),
routerConfig: navigationScheme.config,
);
}
}