doc : RErrorWidget and EmptyWidget
This commit is contained in:
15
lib/presentation/pages/test/logic.dart
Normal file
15
lib/presentation/pages/test/logic.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class TestLogic extends GetxController {
|
||||
@override
|
||||
void onReady() {
|
||||
// TODO: implement onReady
|
||||
super.onReady();
|
||||
}
|
||||
|
||||
@override
|
||||
void onClose() {
|
||||
// TODO: implement onClose
|
||||
super.onClose();
|
||||
}
|
||||
}
|
||||
39
lib/presentation/pages/test/view.dart
Normal file
39
lib/presentation/pages/test/view.dart
Normal file
@@ -0,0 +1,39 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
|
||||
import 'logic.dart';
|
||||
|
||||
class TestPage extends StatelessWidget {
|
||||
const TestPage({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final TestLogic logic = Get.put(TestLogic());
|
||||
|
||||
return Scaffold(body: SafeArea(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(18.0),
|
||||
child: Column(children: [
|
||||
|
||||
Text('buildRow'),
|
||||
buildRow(
|
||||
title: "Test Row Item",
|
||||
value: "Value",
|
||||
titleLabel: "Title Label",
|
||||
valueLabel: "Value Label",
|
||||
titleLabelStyle: AppFonts.yekan14.copyWith(color: Colors.red),
|
||||
valueLabelStyle: AppFonts.yekan14.copyWith(color: Colors.blue),
|
||||
titleStyle: AppFonts.yekan16.copyWith(color: Colors.green),
|
||||
valueStyle: AppFonts.yekan16.copyWith(color: Colors.purple),
|
||||
),
|
||||
Divider(),
|
||||
|
||||
|
||||
|
||||
|
||||
]),
|
||||
),
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,8 @@ import 'package:rasadyar_app/presentation/pages/modules/view.dart';
|
||||
import 'package:rasadyar_app/presentation/pages/splash/logic.dart';
|
||||
import 'package:rasadyar_app/presentation/pages/splash/view.dart';
|
||||
import 'package:rasadyar_app/presentation/pages/system_design/system_design.dart';
|
||||
import 'package:rasadyar_app/presentation/pages/test/logic.dart';
|
||||
import 'package:rasadyar_app/presentation/pages/test/view.dart';
|
||||
import 'package:rasadyar_chicken/chicken.dart';
|
||||
import 'package:rasadyar_chicken/data/di/chicken_di.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
@@ -16,7 +18,8 @@ part 'app_paths.dart';
|
||||
sealed class AppPages {
|
||||
AppPages._();
|
||||
|
||||
static const String initRoutes = AppPaths.splash;
|
||||
//static const String initRoutes = AppPaths.splash;
|
||||
static const String initRoutes = AppPaths.test;
|
||||
static const String initDesignSystem = AppPaths.systemDesignPage;
|
||||
|
||||
static List<GetPage> pages = [
|
||||
@@ -38,13 +41,18 @@ sealed class AppPages {
|
||||
binding: BindingsBuilder.put(() => SplashLogic()),
|
||||
),
|
||||
|
||||
GetPage(
|
||||
name: AppPaths.test,
|
||||
page: () => TestPage(),
|
||||
binding: BindingsBuilder.put(() => TestLogic()),
|
||||
),
|
||||
|
||||
...InspectionPages.pages,
|
||||
...LiveStockPages.pages,
|
||||
...ChickenPages.pages,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Map<String, List<Future<void> Function()?>?> getAuthTargetPage(Module? value) {
|
||||
switch (value) {
|
||||
case Module.inspection:
|
||||
|
||||
@@ -6,4 +6,5 @@ sealed class AppPaths {
|
||||
static const String splash = '/splash';
|
||||
static const String moduleList = '/moduleList';
|
||||
static const String systemDesignPage = '/systemDesignPage';
|
||||
static const String test = '/test';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user