added new design for CompletionOfDocumentsMobilePage and dialog
This commit is contained in:
@@ -8,13 +8,13 @@ class AppConfig {
|
||||
|
||||
// این متد بر اساس محیط فعال، URL مناسب را برمیگرداند.
|
||||
static String get apiBaseUrl {
|
||||
// return 'http://10.0.2.2:8081';
|
||||
return 'http://10.0.2.2:8081';
|
||||
// return '192.168.1.103:8081';
|
||||
// if (isDevelopment) {
|
||||
// // Handle different platforms for local development
|
||||
// if (kIsWeb) {
|
||||
// For web, use localhost
|
||||
return 'https://app.opplens.com';
|
||||
// return 'https://app.opplens.com';
|
||||
// return 'http://localhost:8081';
|
||||
// } else {
|
||||
// For Android emulator, use 10.0.2.2 (special IP for host machine)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:tm_app/views/completion_of_documents/pages/m_completion_of_documents_page.dart';
|
||||
import 'package:tm_app/views/detail/pages/detail_screen.dart';
|
||||
import 'package:tm_app/views/home/pages/home_screen.dart';
|
||||
import 'package:tm_app/views/liked_tenders/pages/liked_tenders_screen.dart';
|
||||
@@ -182,6 +183,16 @@ class LikedTendersRouteData extends GoRouteData with _$LikedTendersRouteData {
|
||||
}
|
||||
}
|
||||
|
||||
@TypedGoRoute<CompletionOfDocumentsMobileRouteData>(path: '/completion-of-documents')
|
||||
class CompletionOfDocumentsMobileRouteData extends GoRouteData with _$CompletionOfDocumentsMobileRouteData {
|
||||
const CompletionOfDocumentsMobileRouteData();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, GoRouterState state) {
|
||||
return CompletionOfDocumentsMobilePage();
|
||||
}
|
||||
}
|
||||
|
||||
@TypedGoRoute<TenderDetailRouteData>(path: '/tender-detail')
|
||||
class TenderDetailRouteData extends GoRouteData with _$TenderDetailRouteData {
|
||||
final String tenderId;
|
||||
|
||||
@@ -11,6 +11,7 @@ List<RouteBase> get $appRoutes => [
|
||||
$appShellRouteData,
|
||||
$yourTendersRouteData,
|
||||
$likedTendersRouteData,
|
||||
$completionOfDocumentsMobileRouteData,
|
||||
$tenderDetailRouteData,
|
||||
$forgotPasswordRouteData,
|
||||
];
|
||||
@@ -228,6 +229,33 @@ mixin _$LikedTendersRouteData on GoRouteData {
|
||||
void replace(BuildContext context) => context.replace(location);
|
||||
}
|
||||
|
||||
RouteBase get $completionOfDocumentsMobileRouteData => GoRouteData.$route(
|
||||
path: '/completion-of-documents',
|
||||
|
||||
factory: _$CompletionOfDocumentsMobileRouteData._fromState,
|
||||
);
|
||||
|
||||
mixin _$CompletionOfDocumentsMobileRouteData on GoRouteData {
|
||||
static CompletionOfDocumentsMobileRouteData _fromState(GoRouterState state) =>
|
||||
const CompletionOfDocumentsMobileRouteData();
|
||||
|
||||
@override
|
||||
String get location => GoRouteData.$location('/completion-of-documents');
|
||||
|
||||
@override
|
||||
void go(BuildContext context) => context.go(location);
|
||||
|
||||
@override
|
||||
Future<T?> push<T>(BuildContext context) => context.push<T>(location);
|
||||
|
||||
@override
|
||||
void pushReplacement(BuildContext context) =>
|
||||
context.pushReplacement(location);
|
||||
|
||||
@override
|
||||
void replace(BuildContext context) => context.replace(location);
|
||||
}
|
||||
|
||||
RouteBase get $tenderDetailRouteData => GoRouteData.$route(
|
||||
path: '/tender-detail',
|
||||
|
||||
|
||||
@@ -113,6 +113,9 @@ class AppColors {
|
||||
? const Color.fromRGBO(131, 120, 105, 0.2)
|
||||
: const Color(0xFFFFF2DE);
|
||||
|
||||
static Color get orange0 =>
|
||||
_isDarkMode ? const Color(0xFF8379694D) : const Color(0xFFFEFBF8);
|
||||
|
||||
static Color get white =>
|
||||
_isDarkMode ? const Color(0xFFFFFFFF) : const Color(0xFFFFFFFF);
|
||||
|
||||
@@ -140,6 +143,12 @@ class AppColors {
|
||||
static Color get error =>
|
||||
_isDarkMode ? const Color(0xFFFF3232) : const Color(0xFFC02525);
|
||||
|
||||
static Color get purple =>
|
||||
_isDarkMode ? const Color(0xFF270059) : const Color(0xFF270059);
|
||||
|
||||
static Color get purpleLight =>
|
||||
_isDarkMode ? const Color(0xFFEAE6EF) : const Color(0xFFEAE6EF);
|
||||
|
||||
static Color get red0 =>
|
||||
_isDarkMode
|
||||
? const Color(0xFF312F2F)
|
||||
|
||||
Reference in New Issue
Block a user