API Table Investasi Admin

This commit is contained in:
2025-02-04 22:35:44 +08:00
parent 257c1ebaad
commit c53ca6d355
40 changed files with 1737 additions and 378 deletions

View File

@@ -0,0 +1,33 @@
import 'package:flutter/material.dart';
import 'package:navme/navme.dart';
import 'package:navme/helpers.dart';
import 'index.dart';
class ${upperName}Navigate {
// base path
static String path = '${privateName}';
// config for configurate Router
static RouteConfig routeConfig = RouteConfig(
state: (Uri? uri) => RouteState(uri: path.toUri()),
// condition for using this page
isThisPage: (RouteState state) {
if (state?.firstPath == path) {
return true;
}
return false;
},
// settigs from url
settings: (RouteState state) {
return null;
},
// get Page for Router
page: ({RouteState? state}) {
return MaterialPage(
key: const ValueKey('${upperName}Page'),
child: ${upperName}Page(),
name: '${upperName}Page');
},
);
}