prosapp_web_app has chat, dashboard, calendar, support, 13 providers and Fluro URL routing. Keep Dockerfile + nginx.conf from previous prosappweb. Upgrade google_fonts 6.2.1 → 8.1.0 (Dart 3.12 compat fix). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
493 B
Dart
18 lines
493 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class NavigationService {
|
|
static GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
|
|
|
|
static navigateTo(String routeName) {
|
|
navigatorKey.currentState!.pushNamed(routeName);
|
|
}
|
|
|
|
static Future<dynamic> navigateToFuture(String routeName) async {
|
|
return await navigatorKey.currentState!.pushNamed(routeName);
|
|
}
|
|
|
|
static replaceTo(String routeName) {
|
|
navigatorKey.currentState!.pushReplacementNamed(routeName);
|
|
}
|
|
}
|