refactor(app): Some issues fixed

This commit is contained in:
2024-06-04 10:13:21 +03:00
parent 05ba633361
commit 6b997a69fe
3 changed files with 27 additions and 51 deletions

View File

@@ -56,7 +56,6 @@ class CustomBottomBarState extends State<CustomBottomBar> {
@override
Widget build(BuildContext context) {
return Container(
height: 100.v,
decoration: BoxDecoration(
border: Border.all(
color: appTheme.whiteA700,
@@ -105,17 +104,16 @@ class CustomBottomBarState extends State<CustomBottomBar> {
double iconWidth;
if (index == 0) {
iconHeight = 50.v;
iconWidth = 50.h;
iconHeight = 50.v;
iconWidth = 50.h;
} else if (index == bottomMenuList.length - 2) {
iconHeight = 20.v;
iconWidth = 20.h;
iconHeight = 20.v;
iconWidth = 20.h;
} else if (index == bottomMenuList.length - 1) {
iconHeight = 40.v;
iconWidth = 40.h;
iconHeight = 40.v;
iconWidth = 40.h;
} else {
iconHeight = 24.v;
iconHeight = 24.v;
iconWidth = 19.h;
}
@@ -139,8 +137,7 @@ class CustomBottomBarState extends State<CustomBottomBar> {
shadowColor: Colors.white,
surfaceTintColor: Colors.white,
position: RelativeRect.fromLTRB(
MediaQuery.of(context).size.width -
50,
MediaQuery.of(context).size.width - 50,
kToolbarHeight + 340,
0, // Не смещаем по горизонтали
0, // Не смещаем по вертикали

View File

@@ -123,8 +123,8 @@ class CustomTextFormField extends StatelessWidget {
width: width ?? double.maxFinite,
child: TextFormField(
controller: controller,
focusNode: focusNode ?? FocusNode(),
autofocus: autofocus!,
focusNode: focusNode ?? null,
autofocus: autofocus ?? false,
style: textStyle ?? theme.textTheme.titleMedium,
obscureText: obscureText!,
textInputAction: textInputAction,