new service request page

main_design2.0
zaid_daoud 2 years ago
parent 1f4fbee83b
commit 42deeeb104

@ -1,7 +1,7 @@
{
"login" : "تسجيل الدخول",
"enterCredsToLogin" : "أدخل بياناتك الخاصة لتسجيل الدخول",
"forgotPassword" : "نسيت كلمة السر",
"forgotPassword" : "نسيت كلمة السر؟",
"password": "كلمة السر",
"username" : "اسم المستخدم",
"requiredField" : "الحقل مطلوب",
@ -16,5 +16,6 @@
"liveChat" : "محادثة حية",
"gasRefillRequest" : "طلب إعادة تعبئة غاز",
"transferRequest" : "طلب نقل",
"serviceRequest" : "طلب خدمة"
"serviceRequest" : "طلب خدمة",
"newServiceRequest" : "طلب خدمة جديدة"
}

@ -1,7 +1,7 @@
{
"login" : "Login",
"enterCredsToLogin" : "Enter you credential to login",
"forgotPassword" : "Forgot Password",
"forgotPassword" : "Forgot Password?",
"password" : "Password",
"username" : "Username",
"requiredField" : "Required Field",
@ -16,5 +16,6 @@
"liveChat" : "Live Chat",
"gasRefillRequest" : "Gas Refill Request",
"transferRequest" : "Transfer Request",
"serviceRequest" : "Service Request"
"serviceRequest" : "Service Request",
"newServiceRequest" : "New Service Request"
}

@ -9,6 +9,7 @@ import 'package:provider/provider.dart';
import 'package:test_sa/new_views/app_style/app_themes.dart';
import 'package:test_sa/new_views/pages/land_page/land_page.dart';
import 'package:test_sa/new_views/pages/login_page.dart';
import 'package:test_sa/new_views/pages/new_service_request_page.dart';
import 'package:test_sa/new_views/pages/splash_page.dart';
import 'controllers/providers/api/user_provider.dart';
@ -74,6 +75,7 @@ class MyApp extends StatelessWidget {
SplashPage.routeName: (_) => const SplashPage(),
LoginPage.routeName: (_) => const LoginPage(),
LandPage.routeName: (_) => const LandPage(),
NewServiceRequestPage.routeName: (_) => const NewServiceRequestPage(),
},
),
),

@ -16,5 +16,6 @@ enum TranslationKeys {
callUs,
gasRefillRequest,
transferRequest,
serviceRequest
serviceRequest,
newServiceRequest,
}

@ -17,13 +17,13 @@ class AppThemes {
),
bottomNavigationBarTheme: BottomNavigationBarThemeData(
type: BottomNavigationBarType.fixed,
unselectedLabelStyle: ThemeData.light().textTheme.bodySmall?.copyWith(fontWeight: FontWeight.w500),
selectedLabelStyle: ThemeData.light().textTheme.bodySmall?.copyWith(fontWeight: FontWeight.w500),
unselectedLabelStyle: ThemeData.light().textTheme.bodySmall.copyWith(fontWeight: FontWeight.w500),
selectedLabelStyle: ThemeData.light().textTheme.bodySmall.copyWith(fontWeight: FontWeight.w500),
selectedItemColor: AppColor.primary70,
unselectedItemColor: AppColor.neutral20,
backgroundColor: Colors.white,
),
appBarTheme: const AppBarTheme(backgroundColor: AppColor.backgroundLight, titleTextStyle: TextStyle(color: AppColor.neutral50)),
appBarTheme: AppBarTheme(elevation: 0, backgroundColor: Colors.white, titleTextStyle: ThemeData.light().textTheme.displayLarge.copyWith(color: AppColor.neutral50)),
cardTheme: ThemeData.light().cardTheme.copyWith(
elevation: 3,
shadowColor: Colors.white.withOpacity(0.05),
@ -45,13 +45,13 @@ class AppThemes {
),
bottomNavigationBarTheme: BottomNavigationBarThemeData(
type: BottomNavigationBarType.fixed,
unselectedLabelStyle: ThemeData.dark().textTheme.bodySmall?.copyWith(fontWeight: FontWeight.w500),
selectedLabelStyle: ThemeData.dark().textTheme.bodySmall?.copyWith(fontWeight: FontWeight.w500),
unselectedLabelStyle: ThemeData.dark().textTheme.bodySmall.copyWith(fontWeight: FontWeight.w500),
selectedLabelStyle: ThemeData.dark().textTheme.bodySmall.copyWith(fontWeight: FontWeight.w500),
selectedItemColor: AppColor.primary40,
unselectedItemColor: AppColor.neutral10,
backgroundColor: AppColor.neutral60,
),
appBarTheme: const AppBarTheme(backgroundColor: AppColor.backgroundDark, titleTextStyle: TextStyle(color: AppColor.neutral30)),
appBarTheme: AppBarTheme(elevation: 0, backgroundColor: AppColor.neutral60, titleTextStyle: ThemeData.dark().textTheme.headlineMedium.copyWith(color: AppColor.neutral30)),
cardTheme: ThemeData.dark().cardTheme.copyWith(
elevation: 3,
shadowColor: Colors.white.withOpacity(0.05),

@ -1,27 +0,0 @@
import 'package:flutter/material.dart';
import 'package:test_sa/extensions/int_extensions.dart';
import '../../app_style/app_color.dart';
class CustomAppBar extends StatelessWidget implements PreferredSizeWidget {
String title;
CustomAppBar({Key key, this.title}) : super(key: key);
@override
Widget build(BuildContext context) {
return AppBar(
title: Text(title, style: Theme.of(context).textTheme.displaySmall?.copyWith(fontWeight: FontWeight.w600, color: AppColor.neutral50)),
leading: IconButton(
icon: Icon(Icons.arrow_back_ios, size: 24,),
onPressed:
() {
Navigator.of(context).pop();
},
),
);
}
@override
Size get preferredSize => Size.fromHeight(60);
}

@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:test_sa/extensions/context_extension.dart';
import 'package:test_sa/extensions/int_extensions.dart';
import 'package:test_sa/new_views/pages/new_service_request_page.dart';
import '../../models/enums/translation_keys.dart';
import '../app_style/app_color.dart';
@ -44,7 +45,7 @@ class _AppFloatingActionButtonState extends State<AppFloatingActionButton> {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const _FloatingButtonListTile(iconName: "gas_refill_request", label: TranslationKeys.gasRefillRequest, routeName: ""),
const _FloatingButtonListTile(iconName: "gas_refill_request", label: TranslationKeys.gasRefillRequest, routeName: NewServiceRequestPage.routeName),
Padding(padding: EdgeInsets.symmetric(horizontal: 16.toScreenWidth), child: const Divider()),
const _FloatingButtonListTile(iconName: "transfer_request", label: TranslationKeys.transferRequest, routeName: ""),
Padding(padding: EdgeInsets.symmetric(horizontal: 16.toScreenWidth), child: const Divider()),

@ -16,6 +16,7 @@ class HomeAppBar extends StatelessWidget implements PreferredSizeWidget {
return Padding(
padding: EdgeInsets.symmetric(horizontal: 16.toScreenWidth),
child: AppBar(
backgroundColor: context.isDark ? AppColor.backgroundDark : AppColor.backgroundLight,
automaticallyImplyLeading: false,
elevation: 0,
leadingWidth: 48.toScreenWidth,

@ -3,7 +3,7 @@ import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:test_sa/extensions/int_extensions.dart';
import 'package:test_sa/new_views/common_widgets/app_bar/home_app_bar.dart';
import 'package:test_sa/new_views/pages/land_page/home_app_bar.dart';
import 'package:test_sa/new_views/pages/land_page/my_assets_page.dart';
import 'package:test_sa/new_views/pages/land_page/my_requests_page.dart';

@ -96,7 +96,7 @@ class _LoginPageState extends State<LoginPage> {
/// TODO [zaid] : push to another screen
},
child: Text(
"${context.translate(TranslationKeys.forgotPassword)}?",
context.translate(TranslationKeys.forgotPassword),
style: Theme.of(context).textTheme.bodyMedium?.copyWith(color: AppColor.primary50, fontWeight: FontWeight.w500),
),
),

@ -0,0 +1,15 @@
import 'package:flutter/material.dart';
import 'package:test_sa/extensions/context_extension.dart';
import 'package:test_sa/models/enums/translation_keys.dart';
class NewServiceRequestPage extends StatelessWidget {
static const String routeName = "/new_service_request_page";
const NewServiceRequestPage({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text(context.translate(TranslationKeys.serviceRequest))),
);
}
}
Loading…
Cancel
Save