Initial commit
This commit is contained in:
185
lib/features/auth/presentation/pages/auth/auth_page.dart
Normal file
185
lib/features/auth/presentation/pages/auth/auth_page.dart
Normal file
@@ -0,0 +1,185 @@
|
||||
import 'package:cargocalculaterapp/core/extension/build_context_extension.dart';
|
||||
import 'package:cargocalculaterapp/core/utils/app_utils.dart';
|
||||
import 'package:cargocalculaterapp/generated/l10n.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import '../../../../../core/widgets/loading/custom_loading.dart';
|
||||
import '../../../../../core/widgets/text_filds/custom_text_field_name.dart';
|
||||
import '../../../../../router/name_routes.dart';
|
||||
import '../../bloc/auth/auth_bloc.dart';
|
||||
import '../mixin/auth_mixin.dart';
|
||||
|
||||
class AuthPage extends StatefulWidget {
|
||||
const AuthPage({super.key});
|
||||
|
||||
@override
|
||||
State<AuthPage> createState() => _AuthPageState();
|
||||
}
|
||||
|
||||
class _AuthPageState extends State<AuthPage> with AuthMixin {
|
||||
@override
|
||||
void initState() {
|
||||
initControllers();
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocBuilder<AuthBloc, AuthState>(
|
||||
builder: (context, state) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
body: ListView(
|
||||
padding: AppUtils.kPaddingHor16,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 60),
|
||||
child: SvgPicture.asset("assets/svg/ic_logo_auth.svg"),
|
||||
),
|
||||
AppUtils.kBoxHeight48,
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
width: 32,
|
||||
height: 32,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: AppUtils.kBorderRadius12,
|
||||
color: context.color.iconBackground,
|
||||
),
|
||||
padding: AppUtils.kPaddingAll6,
|
||||
child: SvgPicture.asset("assets/svg/ic_user.svg"),
|
||||
),
|
||||
AppUtils.kBoxWidth12,
|
||||
Text(
|
||||
AppLocalization.current.auth_login,
|
||||
style: context.text.authTitle,
|
||||
),
|
||||
],
|
||||
),
|
||||
AppUtils.kBoxHeight32,
|
||||
CustomTextFieldName(
|
||||
hint: AppLocalization.current.enter_phone_or_mail,
|
||||
inputType: TextInputType.text,
|
||||
name: AppLocalization.current.phone,
|
||||
controller: loginController,
|
||||
onchange: (value) {
|
||||
context.read<AuthBloc>().add(
|
||||
OnInputEnterEvent(
|
||||
login: value,
|
||||
password: passwordController.text,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
AppUtils.kBoxHeight16,
|
||||
CustomTextFieldName(
|
||||
hint: "********",
|
||||
prefixWidget: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
"CT-",
|
||||
style: context.text.profileCategory.copyWith(
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
inputType: TextInputType.number,
|
||||
name: AppLocalization.current.password,
|
||||
obscureText: state.passwordHidden,
|
||||
maxLines: 1,
|
||||
controller: passwordController,
|
||||
suffix: IconButton(
|
||||
onPressed: () {
|
||||
context.read<AuthBloc>().add(
|
||||
const PasswordVisibilityEvent(),
|
||||
);
|
||||
},
|
||||
icon: Icon(
|
||||
state.passwordHidden
|
||||
? Icons.visibility_off_rounded
|
||||
: Icons.visibility_rounded,
|
||||
),
|
||||
),
|
||||
onchange: (value) {
|
||||
context.read<AuthBloc>().add(
|
||||
OnInputEnterEvent(
|
||||
login: loginController.text,
|
||||
password: value,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
AppUtils.kBoxHeight48,
|
||||
Padding(
|
||||
padding: AppUtils.kPaddingHor34,
|
||||
child: ElevatedButton(
|
||||
onPressed: state.isButtonEnabled && !state.isLoading
|
||||
? () {
|
||||
context.read<AuthBloc>().add(
|
||||
SubmitEvent(
|
||||
login: loginController.text,
|
||||
password: "CT-${passwordController.text}",
|
||||
),
|
||||
);
|
||||
}
|
||||
: null,
|
||||
child: state.isLoading
|
||||
? const CustomLoadingWidget()
|
||||
: Text(AppLocalization.current.auth),
|
||||
),
|
||||
),
|
||||
AppUtils.kBoxHeight16,
|
||||
Text(
|
||||
AppLocalization.current.no_account,
|
||||
style: context.text.authDesc,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
AppUtils.kBoxHeight16,
|
||||
Padding(
|
||||
padding: AppUtils.kPaddingHor34,
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
Navigator.pushNamed(context, Routes.signUp);
|
||||
},
|
||||
borderRadius: AppUtils.kBorderRadius24,
|
||||
child: Ink(
|
||||
decoration: BoxDecoration(
|
||||
color: context.color.scaffoldBackgroundColor,
|
||||
borderRadius: AppUtils.kBorderRadius24,
|
||||
border: Border.all(color: context.color.primaryColor),
|
||||
),
|
||||
height: 56,
|
||||
padding: AppUtils.kPaddingHor16,
|
||||
child: Center(
|
||||
child: Text(
|
||||
AppLocalization.current.sign_up,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: context.color.textColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
disposeControllers();
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
class AuthConfirmArgument {
|
||||
final String? fullName;
|
||||
final String? mail;
|
||||
final String? phoneNumber;
|
||||
final bool fromLoginPage;
|
||||
final String? password;
|
||||
|
||||
AuthConfirmArgument({
|
||||
this.fullName,
|
||||
required this.mail,
|
||||
required this.phoneNumber,
|
||||
required this.fromLoginPage,
|
||||
this.password,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,233 @@
|
||||
import 'package:cargocalculaterapp/core/extension/build_context_extension.dart';
|
||||
import 'package:cargocalculaterapp/core/utils/app_utils.dart';
|
||||
import 'package:cargocalculaterapp/core/widgets/loading/custom_loading.dart';
|
||||
import 'package:cargocalculaterapp/features/auth/presentation/pages/auth_confirm/timer_widget.dart';
|
||||
import 'package:cargocalculaterapp/generated/l10n.dart';
|
||||
import 'package:cargocalculaterapp/router/name_routes.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:pin_code_fields/pin_code_fields.dart';
|
||||
import '../../../../../core/theme/app_text_styles.dart';
|
||||
import '../../../../../core/theme/colors/app_colors.dart';
|
||||
import '../../bloc/auth_confirm/auth_confirm_bloc.dart';
|
||||
import '../mixin/auth_confirm_mixin.dart';
|
||||
import 'argument/auth_confirm_argument.dart';
|
||||
|
||||
class AuthConfirmPage extends StatefulWidget {
|
||||
const AuthConfirmPage({super.key, required this.argument});
|
||||
|
||||
final AuthConfirmArgument? argument;
|
||||
|
||||
@override
|
||||
State<AuthConfirmPage> createState() => _AuthConfirmPageState();
|
||||
}
|
||||
|
||||
class _AuthConfirmPageState extends State<AuthConfirmPage>
|
||||
with AuthConfirmMixin {
|
||||
@override
|
||||
void initState() {
|
||||
initControllers();
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocConsumer<AuthConfirmBloc, AuthConfirmState>(
|
||||
listener: (context, state) {
|
||||
if (state is SuccessSate) {
|
||||
Navigator.pushNamedAndRemoveUntil(
|
||||
context,
|
||||
Routes.main,
|
||||
(route) => route.isFirst,
|
||||
);
|
||||
}
|
||||
},
|
||||
builder: (context, state) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
body: Padding(
|
||||
padding: AppUtils.kPaddingAll16,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Container(
|
||||
width: 64,
|
||||
height: 64,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: AppUtils.kBorderRadius16,
|
||||
color: context.color.iconBackground,
|
||||
),
|
||||
padding: AppUtils.kPaddingAll16,
|
||||
child: SvgPicture.asset(
|
||||
"assets/svg/ic_mail.svg",
|
||||
width: 32,
|
||||
height: 32,
|
||||
),
|
||||
),
|
||||
AppUtils.kBoxHeight16,
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Text(
|
||||
(widget.argument?.mail?.isNotEmpty ?? false)
|
||||
? AppLocalization.current.confirm_email
|
||||
: AppLocalization.current.confirm_phone_text,
|
||||
style: context.text.authTitle,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
AppUtils.kBoxHeight16,
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Text(
|
||||
(widget.argument?.mail?.isNotEmpty ?? false)
|
||||
? AppLocalization.current.enter_code_mail(
|
||||
widget.argument?.mail ?? "",
|
||||
)
|
||||
: AppLocalization.current.enter_code_phone(
|
||||
widget.argument?.phoneNumber ?? "",
|
||||
),
|
||||
style: context.text.authDesc,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
AppUtils.kBoxHeight48,
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 296,
|
||||
child: PinCodeTextField(
|
||||
controller: confirmController,
|
||||
appContext: context,
|
||||
autoDisposeControllers: false,
|
||||
length: 4,
|
||||
animationType: AnimationType.scale,
|
||||
enabled: true,
|
||||
enablePinAutofill: true,
|
||||
inputFormatters: [
|
||||
FilteringTextInputFormatter.digitsOnly,
|
||||
],
|
||||
onChanged: (code) {
|
||||
context.read<AuthConfirmBloc>().add(
|
||||
SmsCodeEnterEvent(code),
|
||||
);
|
||||
},
|
||||
autoFocus: true,
|
||||
keyboardType: const TextInputType.numberWithOptions(),
|
||||
showCursor: true,
|
||||
textStyle: context.text.bigTitle,
|
||||
cursorColor: context.color.accentColor,
|
||||
cursorHeight: 20,
|
||||
enableActiveFill: true,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
pinTheme: PinTheme(
|
||||
activeColor:
|
||||
state is ErrorState
|
||||
? ThemeColors.timerRed
|
||||
: state is SuccessSate
|
||||
? ThemeColors.successInputSMS
|
||||
: context.color.borderColor,
|
||||
selectedFillColor:
|
||||
context.color.scaffoldBackgroundColor,
|
||||
activeFillColor:
|
||||
context.color.scaffoldBackgroundColor,
|
||||
shape: PinCodeFieldShape.box,
|
||||
inactiveFillColor:
|
||||
context.color.scaffoldBackgroundColor,
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(12),
|
||||
),
|
||||
borderWidth: 1,
|
||||
inactiveColor:
|
||||
state is ErrorState
|
||||
? ThemeColors.timerRed
|
||||
: state is SuccessSate
|
||||
? ThemeColors.successInputSMS
|
||||
: context.color.borderColor,
|
||||
fieldWidth: 56,
|
||||
fieldHeight: 64,
|
||||
selectedColor:
|
||||
state is ErrorState
|
||||
? ThemeColors.timerRed
|
||||
: state is SuccessSate
|
||||
? ThemeColors.successInputSMS
|
||||
: context.color.primaryColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
if (state is ErrorState) AppUtils.kBoxHeight16,
|
||||
if (state is ErrorState)
|
||||
Center(
|
||||
child: Text(
|
||||
AppLocalization.current.incorrect_code,
|
||||
style: AppTextStyles.timerBlue,
|
||||
),
|
||||
),
|
||||
AppUtils.kBoxHeight24,
|
||||
if (state.isTimerVisible)
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
AppLocalization.current.send_sms,
|
||||
style: AppTextStyles.timerBlue,
|
||||
),
|
||||
const TimerWidget(),
|
||||
],
|
||||
),
|
||||
if (!state.isTimerVisible)
|
||||
Center(
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
if (widget.argument != null) {
|
||||
context.read<AuthConfirmBloc>().add(
|
||||
ResendCodeEvent(argument: widget.argument!),
|
||||
);
|
||||
}
|
||||
},
|
||||
child: Text(
|
||||
AppLocalization.current.send_sms,
|
||||
style: AppTextStyles.timerBlue,
|
||||
),
|
||||
),
|
||||
),
|
||||
AppUtils.kBoxHeight48,
|
||||
Padding(
|
||||
padding: AppUtils.kPaddingHor34,
|
||||
child: ElevatedButton(
|
||||
onPressed:
|
||||
(confirmController.text.length == 4 &&
|
||||
state is! LoadingState)
|
||||
? () {
|
||||
context.read<AuthConfirmBloc>().add(
|
||||
OnSubmitEvent(
|
||||
code: confirmController.text,
|
||||
argument: widget.argument,
|
||||
),
|
||||
);
|
||||
}
|
||||
: null,
|
||||
child:
|
||||
state is LoadingState
|
||||
? const CustomLoadingWidget()
|
||||
: Text(AppLocalization.current.confirm),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
disposeController();
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
import 'dart:async';
|
||||
import 'package:cargocalculaterapp/core/theme/app_text_styles.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import '../../bloc/auth_confirm/auth_confirm_bloc.dart';
|
||||
|
||||
class TimerWidget extends StatefulWidget {
|
||||
const TimerWidget({super.key});
|
||||
|
||||
@override
|
||||
State<TimerWidget> createState() => _TimerWidgetState();
|
||||
}
|
||||
|
||||
class _TimerWidgetState extends State<TimerWidget> {
|
||||
Timer? timer;
|
||||
int time = 60;
|
||||
String timeText = "60";
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
if (timer?.isActive ?? false) {
|
||||
timer?.cancel();
|
||||
}
|
||||
timer = Timer.periodic(const Duration(seconds: 1), (Timer timer) async {
|
||||
time--;
|
||||
if (time == 0) {
|
||||
timer.cancel();
|
||||
context.read<AuthConfirmBloc>().add(
|
||||
const TimerChangedEvent(isVisible: false),
|
||||
);
|
||||
}
|
||||
setState(() {
|
||||
timeText = time.toString().padLeft(2, "0");
|
||||
});
|
||||
});
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Text(" 00:$timeText", style: AppTextStyles.timerStyle);
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
timer?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
mixin AuthConfirmMixin {
|
||||
late TextEditingController confirmController;
|
||||
|
||||
void initControllers() {
|
||||
confirmController = TextEditingController();
|
||||
}
|
||||
|
||||
void disposeController() {
|
||||
confirmController.dispose();
|
||||
}
|
||||
}
|
||||
16
lib/features/auth/presentation/pages/mixin/auth_mixin.dart
Normal file
16
lib/features/auth/presentation/pages/mixin/auth_mixin.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
mixin AuthMixin {
|
||||
late TextEditingController loginController;
|
||||
late TextEditingController passwordController;
|
||||
|
||||
void initControllers() {
|
||||
loginController = TextEditingController();
|
||||
passwordController = TextEditingController();
|
||||
}
|
||||
|
||||
void disposeControllers() {
|
||||
loginController.dispose();
|
||||
passwordController.dispose();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
mixin SignUpMixin {
|
||||
late TextEditingController loginController;
|
||||
late TextEditingController fullNameController;
|
||||
|
||||
void initControllers() {
|
||||
loginController = TextEditingController();
|
||||
fullNameController = TextEditingController();
|
||||
}
|
||||
|
||||
void disposeControllers() {
|
||||
loginController.dispose();
|
||||
fullNameController.dispose();
|
||||
}
|
||||
}
|
||||
158
lib/features/auth/presentation/pages/sign_up/sign_up_page.dart
Normal file
158
lib/features/auth/presentation/pages/sign_up/sign_up_page.dart
Normal file
@@ -0,0 +1,158 @@
|
||||
import 'package:cargocalculaterapp/core/extension/build_context_extension.dart';
|
||||
import 'package:cargocalculaterapp/features/auth/presentation/pages/mixin/sign_up_mixin.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import '../../../../../core/utils/app_utils.dart';
|
||||
import '../../../../../core/widgets/loading/custom_loading.dart';
|
||||
import '../../../../../core/widgets/text_filds/custom_text_field_name.dart';
|
||||
import '../../../../../generated/l10n.dart';
|
||||
import '../../bloc/sign_up/sign_up_bloc.dart';
|
||||
|
||||
class SignUpPage extends StatefulWidget {
|
||||
const SignUpPage({super.key});
|
||||
|
||||
@override
|
||||
State<SignUpPage> createState() => _SignUpPageState();
|
||||
}
|
||||
|
||||
class _SignUpPageState extends State<SignUpPage> with SignUpMixin {
|
||||
@override
|
||||
void initState() {
|
||||
initControllers();
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocBuilder<SignUpBloc, SignUpState>(
|
||||
builder: (context, state) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
body: ListView(
|
||||
padding: AppUtils.kPaddingAll16,
|
||||
children: [
|
||||
Center(
|
||||
child: Container(
|
||||
width: 64,
|
||||
height: 64,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: AppUtils.kBorderRadius16,
|
||||
color: context.color.iconBackground,
|
||||
),
|
||||
padding: AppUtils.kPaddingAll16,
|
||||
child: SvgPicture.asset(
|
||||
"assets/svg/ic_add_user.svg",
|
||||
width: 32,
|
||||
height: 32,
|
||||
),
|
||||
),
|
||||
),
|
||||
AppUtils.kBoxHeight16,
|
||||
Text(
|
||||
AppLocalization.current.sign_up,
|
||||
style: context.text.authTitle,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
AppUtils.kBoxHeight24,
|
||||
CustomTextFieldName(
|
||||
hint: AppLocalization.current.full_name_hint,
|
||||
inputType: TextInputType.name,
|
||||
name: AppLocalization.current.full_name,
|
||||
controller: fullNameController,
|
||||
onchange: (value) {
|
||||
context.read<SignUpBloc>().add(
|
||||
OnInputEnterEvent(
|
||||
login: loginController.text,
|
||||
fullName: value,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
AppUtils.kBoxHeight16,
|
||||
CustomTextFieldName(
|
||||
hint: AppLocalization.current.enter_phone_or_mail,
|
||||
inputType: TextInputType.text,
|
||||
name: AppLocalization.current.phone,
|
||||
controller: loginController,
|
||||
onchange: (value) {
|
||||
context.read<SignUpBloc>().add(
|
||||
OnInputEnterEvent(
|
||||
login: value,
|
||||
fullName: fullNameController.text,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
AppUtils.kBoxHeight48,
|
||||
Padding(
|
||||
padding: AppUtils.kPaddingHor34,
|
||||
child: ElevatedButton(
|
||||
onPressed:
|
||||
state.isButtonEnabled && !state.isLoading
|
||||
? () {
|
||||
context.read<SignUpBloc>().add(
|
||||
SubmitEvent(
|
||||
login: loginController.text,
|
||||
fullName: fullNameController.text,
|
||||
),
|
||||
);
|
||||
}
|
||||
: null,
|
||||
child:
|
||||
state.isLoading
|
||||
? const CustomLoadingWidget()
|
||||
: Text(AppLocalization.current.sign_up),
|
||||
),
|
||||
),
|
||||
AppUtils.kBoxHeight16,
|
||||
Text(
|
||||
AppLocalization.current.has_account,
|
||||
style: context.text.authDesc,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
AppUtils.kBoxHeight16,
|
||||
Padding(
|
||||
padding: AppUtils.kPaddingHor34,
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
borderRadius: AppUtils.kBorderRadius24,
|
||||
child: Ink(
|
||||
decoration: BoxDecoration(
|
||||
color: context.color.scaffoldBackgroundColor,
|
||||
borderRadius: AppUtils.kBorderRadius24,
|
||||
border: Border.all(color: context.color.primaryColor),
|
||||
),
|
||||
height: 56,
|
||||
padding: AppUtils.kPaddingHor16,
|
||||
child: Center(
|
||||
child: Text(
|
||||
AppLocalization.current.auth,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: context.color.textColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
disposeControllers();
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user