refactor : base page
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
import 'package:rasadyar_core/core.dart' hide BasePage;
|
||||
import 'package:rasadyar_inspection/presentation/pages/records/view.dart';
|
||||
import 'package:rasadyar_inspection/presentation/pages/statistics/view.dart';
|
||||
import 'package:rasadyar_inspection/presentation/pages/users/view.dart';
|
||||
|
||||
@@ -12,7 +12,7 @@ class AddMobileInspectorPage extends GetView<AddMobileInspectorLogic> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: AppColor.bgLight,
|
||||
appBar: RAppBar(
|
||||
/* appBar: RAppBar(
|
||||
title: 'افزودن بازرس همراه',
|
||||
leading: Assets.vec.messageAddSvg.svg(
|
||||
width: 16,
|
||||
@@ -25,7 +25,7 @@ class AddMobileInspectorPage extends GetView<AddMobileInspectorLogic> {
|
||||
additionalActions: [
|
||||
RFab.smallAdd(onPressed: () => controller.countInspector.value++),
|
||||
],
|
||||
),
|
||||
),*/
|
||||
body: Column(
|
||||
children: [
|
||||
Expanded(
|
||||
|
||||
@@ -11,7 +11,7 @@ class AddSupervisionPage extends GetView<AddSupervisionLogic> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: AppColor.lightGreyLight,
|
||||
appBar: RAppBar(
|
||||
/* appBar: RAppBar(
|
||||
title: 'ایجاد بازرسی',
|
||||
leading: Assets.vec.messageAddSvg.svg(
|
||||
width: 16,
|
||||
@@ -21,7 +21,7 @@ class AddSupervisionPage extends GetView<AddSupervisionLogic> {
|
||||
BlendMode.srcIn,
|
||||
),
|
||||
),
|
||||
),
|
||||
),*/
|
||||
body: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ class DisplayInformationPage extends GetView<DisplayInformationLogic> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: AppColor.bgLight,
|
||||
appBar: RAppBar(
|
||||
/* appBar: RAppBar(
|
||||
title: 'نمایش اطلاعات',
|
||||
leading: Assets.vec.messageAddSvg.svg(
|
||||
width: 16,
|
||||
@@ -20,7 +20,7 @@ class DisplayInformationPage extends GetView<DisplayInformationLogic> {
|
||||
BlendMode.srcIn,
|
||||
),
|
||||
),
|
||||
),
|
||||
),*/
|
||||
|
||||
body: Column(
|
||||
children: [
|
||||
|
||||
@@ -12,7 +12,7 @@ class SupervisionFilterPage extends GetView<InspectorFilterLogic> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: RAppBar(title: 'نقشه', additionalActions: [_searchButton(), _filterButton()]),
|
||||
/* appBar: RAppBar(title: 'نقشه', additionalActions: [_searchButton(), _filterButton()]),*/
|
||||
body: PopScope(
|
||||
canPop: !controller.bottomSheetManager.isAnyVisible,
|
||||
onPopInvokedWithResult: (didPop, result) {
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:rasadyar_core/core.dart';
|
||||
import 'package:rasadyar_inspection/data/model/response/poultry_location/poultry_location_model.dart';
|
||||
import 'package:rasadyar_inspection/data/repositories/inspection/inspection_repository_imp.dart';
|
||||
import 'package:rasadyar_inspection/injection/inspection_di.dart';
|
||||
import 'package:rasadyar_inspection/presentation/widget/base_page/logic.dart';
|
||||
import 'package:rasadyar_inspection/presentation/widget/base_page/logic.dart' hide BaseLogic;
|
||||
|
||||
import 'widget/map/logic.dart';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
import 'package:rasadyar_core/core.dart' hide BasePage;
|
||||
import 'package:rasadyar_inspection/presentation/routes/app_routes.dart';
|
||||
import 'package:rasadyar_inspection/presentation/widget/base_page/view.dart';
|
||||
import 'package:rasadyar_inspection/presentation/widget/custom_chips.dart';
|
||||
@@ -20,7 +20,7 @@ class InspectionMapPage extends GetView<InspectionMapLogic> {
|
||||
filteringWidget: filterWidget(showIndex: 3.obs, filterIndex: 5.obs),
|
||||
widgets: [
|
||||
MapPage(),
|
||||
ObxValue((data) {
|
||||
/* ObxValue((data) {
|
||||
if (data.value) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
Get.bottomSheet(
|
||||
@@ -33,7 +33,7 @@ class InspectionMapPage extends GetView<InspectionMapLogic> {
|
||||
});
|
||||
}
|
||||
return const SizedBox.shrink();
|
||||
}, controller.baseLogic.isSearchSelected),
|
||||
}, controller.baseLogic.isSearchSelected),*/
|
||||
],
|
||||
);
|
||||
}
|
||||
@@ -47,7 +47,7 @@ class InspectionMapPage extends GetView<InspectionMapLogic> {
|
||||
Row(
|
||||
spacing: 12,
|
||||
children: [
|
||||
Expanded(
|
||||
/* Expanded(
|
||||
child: RTextField(
|
||||
height: 40,
|
||||
borderColor: AppColor.blackLight,
|
||||
@@ -62,7 +62,7 @@ class InspectionMapPage extends GetView<InspectionMapLogic> {
|
||||
)
|
||||
: IconButton(
|
||||
onPressed: () {
|
||||
controller.baseLogic.searchTextController.clear();
|
||||
// controller.baseLogic.searchTextController.clear();
|
||||
controller.baseLogic.searchValue.value = null;
|
||||
controller.baseLogic.isSearchSelected.value = false;
|
||||
controller.mapLogic.hasFilterOrSearch.value = false;
|
||||
@@ -88,7 +88,7 @@ class InspectionMapPage extends GetView<InspectionMapLogic> {
|
||||
controller: controller.baseLogic.searchTextController,
|
||||
onChanged: (val) => controller.baseLogic.searchValue.value = val,
|
||||
),
|
||||
),
|
||||
),*/
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
Get.back();
|
||||
|
||||
@@ -2,7 +2,7 @@ import 'dart:async';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
import 'package:rasadyar_core/core.dart' hide BaseLogic;
|
||||
import 'package:rasadyar_inspection/data/model/response/hatching_details/hatching_details.dart';
|
||||
import 'package:rasadyar_inspection/data/model/response/poultry_location/poultry_location_model.dart';
|
||||
import 'package:rasadyar_inspection/data/repositories/inspection/inspection_repository_imp.dart';
|
||||
|
||||
@@ -12,7 +12,7 @@ class LocationDetailsPage extends GetView<LocationDetailsLogic> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: AppColor.lightGreyLight,
|
||||
appBar: RAppBar(title: 'جزئیات محل'),
|
||||
/* appBar: RAppBar(title: 'جزئیات محل'),*/
|
||||
body: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
||||
@@ -11,7 +11,7 @@ class RegistrationOfViolationPage extends GetView<RegistrationOfViolationLogic>
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: AppColor.bgLight,
|
||||
appBar: RAppBar(
|
||||
/* appBar: RAppBar(
|
||||
title: 'ثبت تخلف',
|
||||
leading: Assets.vec.messageAddSvg.svg(
|
||||
width: 16,
|
||||
@@ -19,7 +19,7 @@ class RegistrationOfViolationPage extends GetView<RegistrationOfViolationLogic>
|
||||
colorFilter: ColorFilter.mode(Colors.white, BlendMode.srcIn),
|
||||
),
|
||||
additionalActions: [RFab.smallAdd(onPressed: () => controller.countViolation.value++)],
|
||||
),
|
||||
),*/
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
||||
child: Column(
|
||||
|
||||
Reference in New Issue
Block a user