123456789101112131415161718192021222324252627282930313233 |
- import 'package:flutter/material.dart';
- import 'package:sport/application.dart';
- mixin InjectRouteAware<T extends StatefulWidget> on State<T>
- implements RouteAware {
- @override
- void didChangeDependencies() {
- super.didChangeDependencies();
- routeObserver.subscribe(this, ModalRoute.of(context)!);
- }
- @override
- void dispose() {
- routeObserver.unsubscribe(this);
- super.dispose();
- }
- @override
- void didPop() {
- }
- @override
- void didPopNext() {
- }
- @override
- void didPush() {
- }
- @override
- void didPushNext() {
- }
- }
|