dx_shell 1.0.11 dx_shell: ^1.0.11 copied to clipboard
A Flutter package that facilitates easy and efficient navigation between pages on Flutter web, while also updating the URL and fixing any incorrect or mistyped search bar entries.
import 'package:example/router.dart';
import 'package:flutter/material.dart';
import 'package:url_strategy/url_strategy.dart';
void main() {
setPathUrlStrategy();
AppRouter().init();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp.router(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
routerConfig: AppRouter().goRouter,
);
}
}