feature(registration): refactor

This commit is contained in:
mso7nueh
2024-07-14 16:30:10 +03:00
parent 12a0db5093
commit 3cdab9e1bb
31 changed files with 1214 additions and 689 deletions

View File

@@ -3,35 +3,16 @@ import 'package:flutter/material.dart';
// ignore: must_be_immutable
class AppbarTitleImage extends StatelessWidget {
AppbarTitleImage({
Key? key,
this.imagePath,
this.margin,
this.onTap,
}) : super(
key: key,
);
const AppbarTitleImage({required this.imagePath, super.key});
String? imagePath;
EdgeInsetsGeometry? margin;
Function? onTap;
final String? imagePath;
@override
Widget build(BuildContext context) {
return InkWell(
onTap: onTapCall,
child: Padding(
padding: margin ?? EdgeInsets.zero,
child: CustomImageView(
imagePath: imagePath,
height: 48,
fit: BoxFit.contain,
),
),
return CustomImageView(
imagePath: imagePath,
height: 48,
fit: BoxFit.contain,
);
}
void onTapCall() {}
}

View File

@@ -92,7 +92,6 @@ class CustomDropDown extends StatelessWidget {
value: item,
child: Text(
item.title,
overflow: TextOverflow.fade,
style: hintStyle ?? Theme.of(context).textTheme.titleMedium,
),
);

View File

@@ -62,7 +62,7 @@ class CustomTextFormField extends StatelessWidget {
final String? initialValue;
final Function(String)? onFieldSubmitted;
final void Function(String?)? onSaved;
final void Function(String?)? onChanged;
final void Function(String)? onChanged;
@override
Widget build(BuildContext context) {
@@ -128,6 +128,7 @@ class CustomTextFormField extends StatelessWidget {
: SizedBox(
width: width ?? double.maxFinite,
child: TextFormField(
onChanged: onChanged,
controller: controller,
focusNode: focusNode ?? null,
autofocus: autofocus!,