register Design.
@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.31677 1.28632C5.88346 1.40345 6.33476 1.78419 6.61515 2.28722L7.50836 3.88966C7.83737 4.47986 8.11424 4.97655 8.29505 5.40832C8.48686 5.86634 8.60078 6.318 8.5487 6.81736C8.49663 7.31672 8.29197 7.73516 8.0098 8.14375C7.74379 8.52892 7.3704 8.9578 6.92669 9.46742L4.69884 12.0265C6.46568 14.9224 9.07461 17.5325 11.9736 19.3012L14.5326 17.0733C15.0422 16.6296 15.4711 16.2562 15.8563 15.9902C16.2649 15.708 16.6833 15.5034 17.1827 15.4513C17.682 15.3992 18.1337 15.5132 18.5917 15.705C19.0235 15.8858 19.5202 16.1627 20.1104 16.4917L21.7128 17.3849C22.2158 17.6653 22.5966 18.1166 22.7137 18.6832C22.832 19.2558 22.6575 19.8314 22.2719 20.3044C20.873 22.0208 18.6317 23.1136 16.2805 22.6393C14.8353 22.3478 13.4093 21.8621 11.6846 20.873C8.21921 18.8856 5.11214 15.7768 3.12706 12.3155C2.13795 10.5907 1.65223 9.16476 1.36069 7.7195C0.886392 5.36827 1.97923 3.12699 3.69559 1.72809C4.16862 1.34255 4.74417 1.16798 5.31677 1.28632ZM13.3707 20.0737C14.5371 20.6484 15.5516 20.9621 16.5771 21.1689C18.2732 21.5111 19.9854 20.7355 21.1092 19.3568C21.2568 19.1757 21.2577 19.0494 21.2447 18.9869C21.2306 18.9184 21.1733 18.8015 20.9825 18.6951L19.416 17.8219C18.7803 17.4676 18.3572 17.233 18.0123 17.0885C17.6849 16.9515 17.4971 16.9267 17.3382 16.9432C17.1794 16.9598 17.0007 17.0228 16.7087 17.2245C16.401 17.437 16.0354 17.7538 15.4865 18.2317L13.3707 20.0737ZM3.92636 10.6293L5.76835 8.51352C6.24618 7.96466 6.56306 7.599 6.77553 7.29135C6.97721 6.99931 7.04023 6.82062 7.05679 6.66178C7.07336 6.50294 7.04857 6.31509 6.91148 5.98773C6.76705 5.64285 6.53243 5.21968 6.17812 4.58404L5.30494 3.01753C5.19856 2.82669 5.08158 2.76942 5.01317 2.75528C4.95066 2.74236 4.82429 2.74326 4.64326 2.89081C3.26448 4.01457 2.48894 5.72684 2.83107 7.42289C3.03795 8.44847 3.35164 9.46294 3.92636 10.6293Z" fill="#8F9AA3"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@ -0,0 +1,3 @@
|
||||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M20.3844 5.88364C20.8725 5.39548 20.8725 4.60403 20.3844 4.11587C19.8962 3.62772 19.1048 3.62772 18.6166 4.11587L12.5005 10.232L6.38437 4.11587C5.89622 3.62772 5.10476 3.62772 4.6166 4.11587C4.12845 4.60403 4.12845 5.39548 4.6166 5.88364L10.7327 11.9998L4.6166 18.1159C4.12845 18.604 4.12845 19.3955 4.6166 19.8836C5.10476 20.3718 5.89622 20.3718 6.38437 19.8836L12.5005 13.7675L18.6166 19.8836C19.1048 20.3718 19.8962 20.3718 20.3844 19.8836C20.8725 19.3955 20.8725 18.604 20.3844 18.1159L14.2683 11.9998L20.3844 5.88364Z" fill="#ED1C2B"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 653 B |
@ -0,0 +1,3 @@
|
||||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.1905 5.77665C20.59 6.15799 20.6047 6.79098 20.2234 7.19048L9.72336 18.1905C9.53745 18.3852 9.28086 18.4968 9.01163 18.4999C8.7424 18.5031 8.48328 18.3975 8.29289 18.2071L4.79289 14.7071C4.40237 14.3166 4.40237 13.6834 4.79289 13.2929C5.18342 12.9024 5.81658 12.9024 6.20711 13.2929L8.98336 16.0692L18.7766 5.80953C19.158 5.41003 19.791 5.39531 20.1905 5.77665Z" fill="white"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 533 B |
@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.92 2.78681C12.967 2.73773 11.033 2.73773 9.07999 2.7868L9.02182 2.78826C7.497 2.82655 6.27002 2.85735 5.2867 3.0286C4.2572 3.20789 3.42048 3.55177 2.71362 4.26132C2.00971 4.9679 1.66764 5.7926 1.49176 6.8054C1.32429 7.76978 1.29878 8.9668 1.26719 10.4496L1.26593 10.5084C1.24469 11.5047 1.24469 12.4953 1.26594 13.4916L1.26719 13.5504C1.29879 15.0332 1.32429 16.2302 1.49176 17.1946C1.66764 18.2074 2.00972 19.0321 2.71362 19.7387C3.42048 20.4482 4.2572 20.7921 5.2867 20.9714C6.27001 21.1426 7.49697 21.1735 9.02177 21.2117L9.07999 21.2132C11.033 21.2623 12.967 21.2623 14.92 21.2132L14.9782 21.2117C16.503 21.1735 17.73 21.1426 18.7133 20.9714C19.7428 20.7921 20.5795 20.4482 21.2864 19.7387C21.9903 19.0321 22.3324 18.2074 22.5082 17.1946C22.6757 16.2302 22.7012 15.0332 22.7328 13.5503L22.7341 13.4916C22.7553 12.4953 22.7553 11.5047 22.7341 10.5084L22.7328 10.4497C22.7012 8.96683 22.6757 7.76979 22.5082 6.80542C22.3324 5.79261 21.9903 4.96792 21.2864 4.26134C20.5795 3.55179 19.7428 3.20791 18.7133 3.02862C17.73 2.85737 16.503 2.82656 14.9782 2.78827L14.92 2.78681ZM9.11766 4.28633C11.0456 4.23789 12.9544 4.23789 14.8823 4.28633C16.479 4.32645 17.5947 4.35638 18.4559 4.50637C19.2835 4.65049 19.7994 4.89411 20.2237 5.31998C20.3977 5.49459 20.5405 5.68255 20.6582 5.89829L14.7173 9.26444C13.4621 9.9757 12.7003 10.25 12.0001 10.25C11.2999 10.25 10.5381 9.9757 9.28285 9.26444L3.34181 5.8982C3.4595 5.68249 3.60237 5.49455 3.77629 5.31997C4.20055 4.89409 4.71652 4.65048 5.54405 4.50636C6.40529 4.35637 7.52099 4.32644 9.11766 4.28633ZM2.92102 7.38383C2.81754 8.17564 2.79468 9.17647 2.76559 10.5404C2.7448 11.5154 2.7448 12.4846 2.7656 13.4596C2.79877 15.0152 2.82385 16.0984 2.96964 16.938C3.10923 17.7418 3.34907 18.2512 3.77629 18.68C4.20056 19.1059 4.71653 19.3495 5.54406 19.4936C6.4053 19.6436 7.521 19.6736 9.11767 19.7137C11.0456 19.7621 12.9544 19.7621 14.8823 19.7137C16.479 19.6736 17.5947 19.6436 18.4559 19.4936C19.2835 19.3495 19.7994 19.1059 20.2237 18.68C20.6509 18.2512 20.8908 17.7418 21.0304 16.938C21.1762 16.0984 21.2012 15.0152 21.2344 13.4596C21.2552 12.4846 21.2552 11.5154 21.2344 10.5404C21.2053 9.17653 21.1825 8.17574 21.079 7.38394L15.4568 10.5695C14.1635 11.3023 13.1126 11.75 12.0001 11.75C10.8876 11.75 9.83667 11.3023 8.54339 10.5695L2.92102 7.38383Z" fill="#8F9AA3"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.25 12C1.25 17.928 6.072 22.75 12 22.75C17.928 22.75 22.75 17.928 22.75 12C22.75 6.07213 17.9282 1.25021 12.0004 1.25C6.0724 1.25 1.25 6.072 1.25 12ZM20.9732 9.75C21.154 10.4705 21.25 11.2243 21.25 12C21.25 12.7757 21.154 13.5295 20.9732 14.25H16.5746C16.687 13.5359 16.751 12.7846 16.751 11.9997C16.751 11.2151 16.687 10.464 16.5747 9.75H20.9732ZM20.4553 8.25H16.2585C15.6395 5.91321 14.5564 4.07877 13.7158 2.90957C16.7331 3.47793 19.2382 5.51661 20.4553 8.25ZM15.049 9.75C15.1761 10.4613 15.25 11.213 15.25 11.9997C15.25 12.7866 15.1761 13.5386 15.049 14.25H8.95105C8.82391 13.5386 8.75 12.7866 8.75 11.9997C8.75 11.2131 8.82386 10.4613 8.95094 9.75H15.049ZM9.30904 8.25H14.6909C13.966 5.82798 12.7108 4.02825 12 3.1427C11.2892 4.02759 10.0339 5.82765 9.30904 8.25ZM7.42628 9.75C7.31401 10.464 7.25 11.2151 7.25 11.9997C7.25 12.7846 7.31406 13.5359 7.4264 14.25H3.02678C2.84601 13.5295 2.75 12.7757 2.75 12C2.75 11.2243 2.84601 10.4705 3.02678 9.75H7.42628ZM3.54465 8.25H7.74243C8.3613 5.91313 9.44419 4.07864 10.2848 2.90945C7.26725 3.47764 4.76193 5.51642 3.54465 8.25ZM13.7159 21.0904C16.7331 20.522 19.2382 18.4834 20.4553 15.75H16.2584C15.6395 18.0869 14.5565 19.9213 13.7159 21.0904ZM12 20.8568C12.7107 19.9719 13.9659 18.1721 14.6908 15.75H9.30927C10.0342 18.1717 11.2893 19.9713 12 20.8568ZM10.2858 21.0907C9.44515 19.9217 8.36184 18.0871 7.74269 15.75H3.54465C4.76206 18.4839 7.26778 20.5228 10.2858 21.0907Z" fill="#8F9AA3"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 478 KiB After Width: | Height: | Size: 547 B |
@ -0,0 +1,5 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.9915 6.25C10.1956 6.25 8.73797 7.70407 8.73797 9.5C8.73797 11.2959 10.1956 12.75 11.9915 12.75C13.7874 12.75 15.2451 11.2959 15.2451 9.5C15.2451 7.70407 13.7874 6.25 11.9915 6.25ZM10.238 9.5C10.238 8.53451 11.0221 7.75 11.9915 7.75C12.961 7.75 13.7451 8.53451 13.7451 9.5C13.7451 10.4655 12.961 11.25 11.9915 11.25C11.0221 11.25 10.238 10.4655 10.238 9.5Z" fill="#8F9AA3"/>
|
||||
<path d="M8.04246 17.5179C10.0929 15.3704 13.9024 15.2882 15.9485 17.5083C16.2292 17.8129 16.7037 17.8322 17.0083 17.5515C17.3129 17.2708 17.3322 16.7963 17.0515 16.4917C14.3841 13.5975 9.57054 13.7453 6.95754 16.4821C6.6715 16.7817 6.68249 17.2564 6.98208 17.5425C7.28167 17.8285 7.75642 17.8175 8.04246 17.5179Z" fill="#8F9AA3"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 1.25C6.06294 1.25 1.25 6.06294 1.25 12C1.25 17.9371 6.06294 22.75 12 22.75C17.9371 22.75 22.75 17.9371 22.75 12C22.75 6.06294 17.9371 1.25 12 1.25ZM2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12Z" fill="#8F9AA3"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1,4 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 1.25C9.92893 1.25 8.25 2.92893 8.25 5C8.25 6.07361 8.80516 7.11878 9.47423 7.87011C9.8162 8.25412 10.2119 8.58958 10.6285 8.8334C11.0382 9.07316 11.5127 9.25 12 9.25C12.4873 9.25 12.9618 9.07316 13.3715 8.8334C13.7881 8.58958 14.1838 8.25412 14.5258 7.87011C15.1948 7.11878 15.75 6.07361 15.75 5C15.75 2.92893 14.0711 1.25 12 1.25ZM9.75 5C9.75 3.75736 10.7574 2.75 12 2.75C13.2426 2.75 14.25 3.75736 14.25 5C14.25 5.58324 13.9261 6.28807 13.4056 6.87254C13.1528 7.15642 12.8761 7.38529 12.6138 7.53884C12.3445 7.69645 12.1336 7.75 12 7.75C11.8664 7.75 11.6555 7.69645 11.3862 7.53884C11.1239 7.38529 10.8472 7.15642 10.5944 6.87254C10.0739 6.28807 9.75 5.58324 9.75 5Z" fill="#8F9AA3"/>
|
||||
<path d="M16.5361 8.43607C16.2246 8.163 15.7508 8.19411 15.4777 8.50557C15.2046 8.81702 15.2358 9.29087 15.5472 9.56395C16.9161 10.7642 17.6947 12.6997 16.9739 14.4145C16.8974 14.5965 16.7278 14.7039 16.5515 14.7039C16.4877 14.7039 16.4317 14.7013 16.3594 14.6978C16.3059 14.6953 16.2433 14.6923 16.162 14.6897C16.0029 14.6845 15.7978 14.6828 15.5894 14.7127C15.3825 14.7424 15.1209 14.8099 14.8815 14.9807C14.6239 15.1644 14.4438 15.4309 14.3634 15.7588L13.2662 20.2337C13.1175 20.8402 12.589 21.25 12.0002 21.25C11.4113 21.25 10.8829 20.8402 10.7342 20.2337L9.63694 15.7588C9.55653 15.4309 9.37649 15.1644 9.11889 14.9807C8.87943 14.8099 8.61784 14.7424 8.411 14.7127C8.2026 14.6828 7.99741 14.6845 7.8384 14.6897C7.75704 14.6923 7.69451 14.6953 7.64096 14.6978C7.56867 14.7013 7.51267 14.7039 7.44881 14.7039C7.27253 14.7039 7.10296 14.5965 7.02647 14.4145C6.30564 12.6997 7.08426 10.7642 8.4532 9.56395C8.76465 9.29087 8.79577 8.81702 8.52269 8.50557C8.24962 8.19411 7.77577 8.163 7.46431 8.43607C5.78727 9.90645 4.59207 12.4941 5.64367 14.9958C5.94906 15.7223 6.65565 16.2039 7.44881 16.2039C7.54143 16.2039 7.66389 16.1985 7.7653 16.1939C7.81197 16.1918 7.8542 16.1899 7.887 16.1889C8.02331 16.1845 8.12276 16.1867 8.198 16.1975L8.20015 16.1978L9.27735 20.591C9.58622 21.8506 10.7024 22.75 12.0002 22.75C13.298 22.75 14.4141 21.8506 14.723 20.591L15.8002 16.1978L15.8024 16.1975C15.8776 16.1867 15.977 16.1845 16.1134 16.1889C16.1461 16.1899 16.1882 16.1918 16.2348 16.1939C16.3361 16.1984 16.459 16.2039 16.5515 16.2039C17.3447 16.2039 18.0513 15.7223 18.3567 14.9958C19.4083 12.4941 18.2132 9.90646 16.5361 8.43607Z" fill="#8F9AA3"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
@ -0,0 +1,313 @@
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:hmg_patient_app/config/size_config.dart';
|
||||
import 'package:hmg_patient_app/core/viewModels/project_view_model.dart';
|
||||
import 'package:hmg_patient_app/new_ui/otp/otp_validation_bootmsheet_widget.dart';
|
||||
import 'package:hmg_patient_app/pages/AlHabibMedicalService/health_calculator/carbs/carbs.dart';
|
||||
import 'package:hmg_patient_app/pages/login/login-type.dart';
|
||||
import 'package:hmg_patient_app/pages/login/register-info.dart';
|
||||
import 'package:hmg_patient_app/pages/login/register.dart';
|
||||
import 'package:hmg_patient_app/services/authentication/auth_provider.dart';
|
||||
import 'package:hmg_patient_app/theme/colors.dart';
|
||||
import 'package:hmg_patient_app/uitl/app_shared_preferences.dart';
|
||||
import 'package:hmg_patient_app/uitl/translations_delegate_base.dart';
|
||||
import 'package:hmg_patient_app/uitl/utils.dart';
|
||||
import 'package:hmg_patient_app/uitl/utils_new.dart';
|
||||
import 'package:hmg_patient_app/widgets/others/app_scaffold_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hmg_patient_app/widgets/text/app_texts_widget.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class RegisterNewStep2 extends StatefulWidget {
|
||||
@override
|
||||
_RegisterNew createState() => _RegisterNew();
|
||||
}
|
||||
|
||||
class _RegisterNew extends State<RegisterNewStep2> {
|
||||
final nationalIDorFile = TextEditingController();
|
||||
final emailAddress = TextEditingController();
|
||||
DateTime? selectedDOB;
|
||||
|
||||
final int loginType = LoginType.loginType;
|
||||
late String mobileNo;
|
||||
String countryCode = '966';
|
||||
var isHijri;
|
||||
final util = Utils();
|
||||
late String dob;
|
||||
bool isButtonDisabled = true;
|
||||
final authService = new AuthProvider();
|
||||
final sharedPref = new AppSharedPreferences();
|
||||
late PageController _controller;
|
||||
late bool isLoading;
|
||||
int _currentIndex = 0;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_controller = new PageController();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
changePageViewIndex(pageIndex) {
|
||||
_controller.jumpToPage(pageIndex);
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AppScaffold(
|
||||
appBarTitle: "Personal Details Verification",
|
||||
isShowDecPage: false,
|
||||
isShowAppBar: true,
|
||||
isshowBackButton: true,
|
||||
showNewAppBar: true,
|
||||
backgroundColor: Color(0xffF8F8F8),
|
||||
showNewAppBarTitle: true,
|
||||
showDropDown: false,
|
||||
isShowLanguageChanger: false,
|
||||
showHomeAppBarIcon: false,
|
||||
resizeToAvoidBottomInset: true,
|
||||
appBarIcons: [],
|
||||
dropDownIndexChange: (value) {
|
||||
Utils.changeAppLanguage(context: context);
|
||||
},
|
||||
body: SafeArea(
|
||||
child: SingleChildScrollView(
|
||||
reverse: false,
|
||||
padding: EdgeInsets.only(left: 24, right: 24, top: 24),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
Directionality(
|
||||
textDirection: Directionality.of(context),
|
||||
child: Container(
|
||||
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(24)),
|
||||
padding: EdgeInsets.only(left: 16, right: 16),
|
||||
child: Column(
|
||||
children: [
|
||||
inputWidget(TranslationBase.of(context).name, "Mohammad Hussain Abdul Ghaffar", nationalIDorFile,
|
||||
isEnable: true,
|
||||
prefix: null,
|
||||
removePadding: true,
|
||||
isAllowRadius: false,
|
||||
hasSelection: false,
|
||||
isBorderAllowed: false,
|
||||
isAllowLeadingIcon: true,
|
||||
isReadOnly: true,
|
||||
leadingIcon: "assets/images/svg/user-circle.svg",
|
||||
onChange: (value) {}),
|
||||
Divider(height: 1),
|
||||
inputWidget(TranslationBase.of(context).nationalIdNumber, "25293444933", nationalIDorFile,
|
||||
isEnable: true,
|
||||
prefix: null,
|
||||
removePadding: true,
|
||||
isAllowRadius: false,
|
||||
hasSelection: false,
|
||||
isBorderAllowed: false,
|
||||
isAllowLeadingIcon: true,
|
||||
isReadOnly: true,
|
||||
leadingIcon: "assets/images/svg/student-card.svg",
|
||||
onChange: (value) {}),
|
||||
Divider(height: 1),
|
||||
inputWidget(TranslationBase.of(context).gender, "Male", nationalIDorFile,
|
||||
isEnable: true,
|
||||
prefix: null,
|
||||
removePadding: true,
|
||||
isAllowRadius: false,
|
||||
hasSelection: false,
|
||||
isBorderAllowed: false,
|
||||
isAllowLeadingIcon: true,
|
||||
isReadOnly: true,
|
||||
leadingIcon: "assets/images/svg/user-full.svg",
|
||||
onChange: (value) {}),
|
||||
Divider(height: 1),
|
||||
inputWidget(TranslationBase.of(context).maritalStatus, "Married", nationalIDorFile,
|
||||
isEnable: true,
|
||||
prefix: null,
|
||||
removePadding: true,
|
||||
isAllowRadius: false,
|
||||
hasSelection: false,
|
||||
isBorderAllowed: false,
|
||||
isAllowLeadingIcon: true,
|
||||
isReadOnly: true,
|
||||
leadingIcon: "assets/images/svg/smart-phone.svg",
|
||||
onChange: (value) {}),
|
||||
Divider(height: 1),
|
||||
inputWidget(TranslationBase.of(context).nationality, "Pakistani", nationalIDorFile,
|
||||
isEnable: true,
|
||||
prefix: null,
|
||||
removePadding: true,
|
||||
isAllowRadius: false,
|
||||
hasSelection: false,
|
||||
isBorderAllowed: false,
|
||||
isAllowLeadingIcon: true,
|
||||
isReadOnly: true,
|
||||
leadingIcon: "assets/images/svg/globe.svg",
|
||||
onChange: (value) {}),
|
||||
Divider(height: 1),
|
||||
inputWidget(TranslationBase.of(context).mobileNumber, "234567876543", nationalIDorFile,
|
||||
isEnable: true,
|
||||
prefix: null,
|
||||
removePadding: true,
|
||||
isAllowRadius: false,
|
||||
hasSelection: false,
|
||||
isBorderAllowed: false,
|
||||
isAllowLeadingIcon: true,
|
||||
isReadOnly: true,
|
||||
leadingIcon: "assets/images/svg/call.svg",
|
||||
onChange: (value) {}),
|
||||
Divider(height: 1),
|
||||
inputWidget(TranslationBase.of(context).dob, "11 July, 1994", nationalIDorFile,
|
||||
isEnable: true,
|
||||
prefix: null,
|
||||
hasSelection: false,
|
||||
removePadding: true,
|
||||
isBorderAllowed: false,
|
||||
isAllowLeadingIcon: true,
|
||||
hasSelectionCustomIcon: false,
|
||||
isReadOnly: true,
|
||||
selectionType: SelectionType.calendar,
|
||||
selectedValue: selectedDOB != null ? Utils.formatDateToDisplay(selectedDOB.toString()) : null,
|
||||
selectionCustomIcon: "assets/images/svg/calendar.svg",
|
||||
leadingIcon: "assets/images/svg/birthday-cake.svg",
|
||||
onChange: (value) {}),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 150),
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: CustomButton(
|
||||
text: TranslationBase.of(context).cancel,
|
||||
icon: "assets/images/svg/cancel.svg",
|
||||
onPressed: () {
|
||||
if (nationalIDorFile == null) {
|
||||
Utils.showErrorToast("Please enter your national id.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (selectedDOB == null) {
|
||||
Utils.showErrorToast("Please enter your date of birth.");
|
||||
return;
|
||||
}
|
||||
},
|
||||
fontFamily: context.fontFamily,
|
||||
backgroundColor: Color(0xFFFEE9EA),
|
||||
borderColor: Color(0xFFFEE9EA),
|
||||
textColor: Color(0xFFED1C2B),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: 16,
|
||||
),
|
||||
Expanded(
|
||||
child: CustomButton(
|
||||
text: TranslationBase.of(context).confirm,
|
||||
icon: "assets/images/svg/confirm.svg",
|
||||
onPressed: () {
|
||||
// // bool isValid = Utils.validateIqama(nationalIDorFile.text);
|
||||
// if (nationalIDorFile == null) {
|
||||
// Utils.showErrorToast("Please enter your national id.");
|
||||
// return;
|
||||
// }
|
||||
// if (selectedDOB == null) {
|
||||
// Utils.showErrorToast("Please enter your date of birth.");
|
||||
// return;
|
||||
// }
|
||||
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
isScrollControlled: true,
|
||||
isDismissible: false,
|
||||
backgroundColor: Colors.transparent,
|
||||
builder: (bottomSheetContext) => Padding(
|
||||
padding: EdgeInsets.only(bottom: MediaQuery.of(bottomSheetContext).viewInsets.bottom),
|
||||
child: SingleChildScrollView(
|
||||
child: GenericBottomSheet(
|
||||
textController: emailAddress,
|
||||
isForEmail: true,
|
||||
buttons: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 10),
|
||||
child: CustomButton(text: "Submit", onPressed: () {}, backgroundColor: Colors.red, borderColor: Colors.red, textColor: Colors.white),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
fontFamily: context.fontFamily,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
SizedBox(height: 14),
|
||||
],
|
||||
),
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
Widget showProgress({String? title, String? status, Color? color, bool isNeedBorder = true}) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
width: 26,
|
||||
height: 26,
|
||||
decoration: containerRadius(color!, 200),
|
||||
child: Icon(
|
||||
Icons.done,
|
||||
color: Colors.white,
|
||||
size: 16,
|
||||
),
|
||||
),
|
||||
if (isNeedBorder)
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: mDivider(Colors.grey),
|
||||
)),
|
||||
],
|
||||
),
|
||||
mHeight(8),
|
||||
Text(
|
||||
title!,
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.w600,
|
||||
letterSpacing: -0.44,
|
||||
),
|
||||
),
|
||||
mHeight(2),
|
||||
Container(
|
||||
padding: EdgeInsets.all(5),
|
||||
decoration: containerRadius(color.withOpacity(0.2), 4),
|
||||
child: Text(
|
||||
status!,
|
||||
style: TextStyle(
|
||||
fontSize: 8,
|
||||
fontWeight: FontWeight.w600,
|
||||
letterSpacing: -0.32,
|
||||
color: color,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
void registerUser(int? value) {}
|
||||
}
|
||||