67 lines
2.2 KiB
Dart
67 lines
2.2 KiB
Dart
import 'package:cims_apps/application/component/button/button_view.dart';
|
|
import 'package:cims_apps/application/component/text_caption/text_caption.dart';
|
|
import 'package:cims_apps/application/component/text_form/text_form_view.dart';
|
|
import 'package:cims_apps/core/route/route.dart';
|
|
import 'package:cims_apps/features/auth/registration/view/initial_registration_step.dart';
|
|
import 'package:cims_apps/features/bottom_navigation_view.dart';
|
|
import 'package:flutter/gestures.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class RegistrationView extends StatelessWidget {
|
|
static const routName = '/RegistrationView';
|
|
const RegistrationView({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text('Sign Up'),
|
|
),
|
|
body: Container(
|
|
padding: const EdgeInsets.all(24.0),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
const TextCaption(
|
|
title: 'Enter your phone number',
|
|
subtitle: 'Input your registered phone number',
|
|
),
|
|
TextFormView(name: 'Phone Number'),
|
|
ButtonView(
|
|
name: 'Next',
|
|
onPressed: () {
|
|
routePush(context, page: const InitialRegistrationStep());
|
|
},
|
|
),
|
|
Align(
|
|
alignment: Alignment.center,
|
|
child: RichText(
|
|
textAlign: TextAlign.center,
|
|
text: TextSpan(children: [
|
|
const TextSpan(
|
|
text: 'Already have an account? ',
|
|
style: TextStyle(
|
|
color: Colors.black,
|
|
decoration: TextDecoration.underline,
|
|
),
|
|
),
|
|
TextSpan(
|
|
recognizer: TapGestureRecognizer()
|
|
..onTap = () {
|
|
print('object');
|
|
},
|
|
text: ' Sign In',
|
|
style: const TextStyle(
|
|
color: Colors.blue,
|
|
),
|
|
),
|
|
]),
|
|
),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|