commit 3
parent
4aabf58541
commit
1eb4ad1db9
@ -0,0 +1,67 @@
|
|||||||
|
import 'package:car_customer_app/utils/utils.dart';
|
||||||
|
import 'package:car_customer_app/widgets/app_bar.dart';
|
||||||
|
import 'package:car_customer_app/widgets/show_fill_button.dart';
|
||||||
|
import 'package:car_customer_app/widgets/txt.dart';
|
||||||
|
import 'package:car_customer_app/widgets/txt_field.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class CompleteProfilePage extends StatelessWidget {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: appBar(title: "Sign Up"),
|
||||||
|
body: Container(
|
||||||
|
width: double.infinity,
|
||||||
|
height: double.infinity,
|
||||||
|
child: SingleChildScrollView(
|
||||||
|
child: Padding(
|
||||||
|
padding: EdgeInsets.all(40),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Txt(
|
||||||
|
"Complete Profile",
|
||||||
|
txtType: TxtType.heading3,
|
||||||
|
),
|
||||||
|
mHeight(12),
|
||||||
|
TxtField(
|
||||||
|
hint: "First Name",
|
||||||
|
),
|
||||||
|
mHeight(12),
|
||||||
|
TxtField(
|
||||||
|
hint: "Surname",
|
||||||
|
),
|
||||||
|
mHeight(12),
|
||||||
|
TxtField(
|
||||||
|
hint: "Email",
|
||||||
|
),
|
||||||
|
mHeight(12),
|
||||||
|
TxtField(
|
||||||
|
hint: "Create Password",
|
||||||
|
),
|
||||||
|
mHeight(12),
|
||||||
|
TxtField(
|
||||||
|
hint: "Confirm Password",
|
||||||
|
),
|
||||||
|
mHeight(12),
|
||||||
|
TxtField(
|
||||||
|
hint: "Phone Number",
|
||||||
|
),
|
||||||
|
mHeight(50),
|
||||||
|
Txt(
|
||||||
|
"By creating an account you agree to our Terms of Service and Privacy Policy",
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
mHeight(16),
|
||||||
|
ShowFillButton(
|
||||||
|
title: "Continue",
|
||||||
|
width: double.infinity,
|
||||||
|
onPressed: () {},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
void showMDialog(
|
||||||
|
context, {
|
||||||
|
Widget? child,
|
||||||
|
}) async {
|
||||||
|
return showDialog(
|
||||||
|
context: context,
|
||||||
|
barrierDismissible: true,
|
||||||
|
builder: (context) {
|
||||||
|
return Dialog(
|
||||||
|
child: child,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
import 'package:car_customer_app/theme/colors.dart';
|
||||||
|
import 'package:car_customer_app/utils/navigator.dart';
|
||||||
|
import 'package:car_customer_app/utils/utils.dart';
|
||||||
|
import 'package:car_customer_app/widgets/show_fill_button.dart';
|
||||||
|
import 'package:car_customer_app/widgets/txt.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class MessageDialog extends StatelessWidget {
|
||||||
|
String? title, buttonTitle;
|
||||||
|
VoidCallback? onClick;
|
||||||
|
MessageDialog({this.title, this.buttonTitle,this.onClick});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Container(
|
||||||
|
color: Colors.white,
|
||||||
|
padding: EdgeInsets.all(30),
|
||||||
|
child: Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Txt(
|
||||||
|
title ?? "message",
|
||||||
|
txtType: TxtType.heading3,
|
||||||
|
),
|
||||||
|
mHeight(40),
|
||||||
|
ShowFillButton(
|
||||||
|
title: buttonTitle ?? "Continue",
|
||||||
|
width: double.infinity,
|
||||||
|
onPressed: () {
|
||||||
|
onClick!();
|
||||||
|
},
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,74 @@
|
|||||||
|
import 'package:car_customer_app/theme/colors.dart';
|
||||||
|
import 'package:car_customer_app/utils/navigator.dart';
|
||||||
|
import 'package:car_customer_app/utils/utils.dart';
|
||||||
|
import 'package:car_customer_app/widgets/show_fill_button.dart';
|
||||||
|
import 'package:car_customer_app/widgets/txt.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class OtpDialog extends StatelessWidget {
|
||||||
|
VoidCallback onClick;
|
||||||
|
|
||||||
|
OtpDialog({required this.onClick});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Container(
|
||||||
|
color: Colors.white,
|
||||||
|
padding: EdgeInsets.all(30),
|
||||||
|
child: Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Txt(
|
||||||
|
"Please insert OTP Code",
|
||||||
|
txtType: TxtType.heading3,
|
||||||
|
),
|
||||||
|
mHeight(20),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: Container(
|
||||||
|
width: double.infinity,
|
||||||
|
height: 60,
|
||||||
|
color: accentColor.withOpacity(0.3),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
mWidth(12),
|
||||||
|
Expanded(
|
||||||
|
child: Container(
|
||||||
|
width: double.infinity,
|
||||||
|
height: 60,
|
||||||
|
color: accentColor.withOpacity(0.3),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
mWidth(12),
|
||||||
|
Expanded(
|
||||||
|
child: Container(
|
||||||
|
width: double.infinity,
|
||||||
|
height: 60,
|
||||||
|
color: accentColor.withOpacity(0.3),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
mWidth(12),
|
||||||
|
Expanded(
|
||||||
|
child: Container(
|
||||||
|
width: double.infinity,
|
||||||
|
height: 60,
|
||||||
|
color: accentColor.withOpacity(0.3),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
mHeight(40),
|
||||||
|
ShowFillButton(
|
||||||
|
title: "Check Code",
|
||||||
|
width: double.infinity,
|
||||||
|
onPressed: () {
|
||||||
|
onClick();
|
||||||
|
},
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue