|
|
|
@ -1,7 +1,6 @@ |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:shia_game_flutter/common_ui/resources/my_text_style.dart'; |
|
|
|
import 'package:shia_game_flutter/common_ui/theme/my_theme.dart'; |
|
|
|
import 'package:shia_game_flutter/core/utils/screen_size.dart'; |
|
|
|
|
|
|
|
class MyInput extends StatelessWidget { |
|
|
|
const MyInput({ |
|
|
|
@ -48,7 +47,7 @@ class MyInput extends StatelessWidget { |
|
|
|
if (labelText != null && labelText!.isNotEmpty) |
|
|
|
Text( |
|
|
|
labelText ?? '', |
|
|
|
style: Lexend.bold.copyWith(fontSize: 12.sp), |
|
|
|
style: Lexend.bold.copyWith(fontSize: 12), |
|
|
|
), |
|
|
|
TextFormField( |
|
|
|
controller: controller, |
|
|
|
@ -63,7 +62,7 @@ class MyInput extends StatelessWidget { |
|
|
|
readOnly: readOnly ?? false, |
|
|
|
maxLines: maxLines, |
|
|
|
minLines: minLines, |
|
|
|
style: Lexend.extraBold.copyWith(fontSize: 12.sp), |
|
|
|
style: Lexend.extraBold.copyWith(fontSize: 12), |
|
|
|
cursorColor: context.primaryColor, |
|
|
|
decoration: InputDecoration( |
|
|
|
contentPadding: const EdgeInsets.all(14), |
|
|
|
@ -78,7 +77,7 @@ class MyInput extends StatelessWidget { |
|
|
|
fillColor: const Color(0XFF000000).withValues(alpha: 0.2), |
|
|
|
filled: true, |
|
|
|
hintText: hintText, |
|
|
|
hintStyle: Lexend.extraBold.copyWith(fontSize: 12.sp), |
|
|
|
hintStyle: Lexend.extraBold.copyWith(fontSize: 12), |
|
|
|
), |
|
|
|
onTapOutside: (event) { |
|
|
|
FocusManager.instance.primaryFocus?.unfocus(); |
|
|
|
|