marco.pms.mobileapp/lib/view/error_pages/error_404_screen.dart
Vaibhav Surve 5c53a3f4be Refactor project structure and rename from 'marco' to 'on field work'
- Updated import paths across multiple files to reflect the new package name.
- Changed application name and identifiers in CMakeLists.txt, Runner.rc, and other configuration files.
- Modified web index.html and manifest.json to update the app title and name.
- Adjusted macOS and Windows project settings to align with the new application name.
- Ensured consistency in naming across all relevant files and directories.
2025-11-22 14:20:37 +05:30

72 lines
2.6 KiB
Dart

import 'package:on_field_work/controller/error_pages/error_404_controller.dart';
import 'package:on_field_work/helpers/utils/mixins/ui_mixin.dart';
import 'package:on_field_work/helpers/widgets/my_container.dart';
import 'package:on_field_work/helpers/widgets/my_spacing.dart';
import 'package:on_field_work/helpers/widgets/my_text.dart';
import 'package:on_field_work/images.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
class Error404Screen extends StatefulWidget {
const Error404Screen({super.key});
@override
State<Error404Screen> createState() => _Error404ScreenState();
}
class _Error404ScreenState extends State<Error404Screen> with SingleTickerProviderStateMixin, UIMixin {
late Error404Controller controller;
@override
void initState() {
controller = Error404Controller();
super.initState();
}
@override
Widget build(BuildContext context) {
return GetBuilder(
init: controller,
tag: 'error_404_controller',
builder: (controller) {
return Scaffold(
body: Stack(
alignment: Alignment.center,
clipBehavior: Clip.antiAliasWithSaveLayer,
children: [
Stack(
clipBehavior: Clip.antiAliasWithSaveLayer,
fit: StackFit.expand,
children: [Image.asset(Images.authBackground, fit: BoxFit.cover), Container(color: Colors.black.withValues(alpha: .6))],
),
Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
MyText.displayLarge("Page Not Found!", fontWeight: 600, color: contentTheme.onPrimary, textAlign: TextAlign.center),
MyText.displayLarge("404", fontWeight: 600, fontSize: 200, color: contentTheme.onPrimary, textAlign: TextAlign.center),
MySpacing.height(40),
MyContainer(
onTap: () => controller.goToDashboardScreen(),
borderRadiusAll: 8,
color: contentTheme.primary,
height: 44,
width: 200,
paddingAll: 0,
clipBehavior: Clip.antiAliasWithSaveLayer,
child: Center(
child: MyText.bodyLarge(
"Back to home",
color: contentTheme.onPrimary,
)),
)
],
),
],
),
);
},
);
}
}