Refactor profile details page

This commit is contained in:
problematicconsumer
2023-09-28 14:03:45 +03:30
parent fa32b85628
commit f126bf3201
12 changed files with 267 additions and 114 deletions

View File

@@ -93,24 +93,18 @@ class ProfilesRoute extends GoRouteData {
}
class NewProfileRoute extends GoRouteData {
const NewProfileRoute({this.url, this.profileName});
const NewProfileRoute();
static const path = 'profiles/new';
static const name = 'New Profile';
final String? url;
final String? profileName;
static final GlobalKey<NavigatorState> $parentNavigatorKey = rootNavigatorKey;
@override
Page<void> buildPage(BuildContext context, GoRouterState state) {
return MaterialPage(
return const MaterialPage(
fullscreenDialog: true,
name: name,
child: ProfileDetailPage(
"new",
url: url,
name: profileName,
),
child: ProfileDetailPage("new"),
);
}
}