|
|
|
@ -1,7 +1,7 @@ |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:shia_game_flutter/common_ui/resources/my_spaces.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({ |
|
|
|
@ -43,12 +43,12 @@ class MyInput extends StatelessWidget { |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
spacing: MySpaces.s8, |
|
|
|
spacing: 8, |
|
|
|
children: [ |
|
|
|
if (labelText != null && labelText!.isNotEmpty) |
|
|
|
Text( |
|
|
|
labelText ?? '', |
|
|
|
style: Lexend.bold.copyWith(fontSize: 12), |
|
|
|
style: Lexend.bold.copyWith(fontSize: 12.sp), |
|
|
|
), |
|
|
|
TextFormField( |
|
|
|
controller: controller, |
|
|
|
@ -63,10 +63,10 @@ class MyInput extends StatelessWidget { |
|
|
|
readOnly: readOnly ?? false, |
|
|
|
maxLines: maxLines, |
|
|
|
minLines: minLines, |
|
|
|
style: Lexend.extraBold.copyWith(fontSize: 12), |
|
|
|
style: Lexend.extraBold.copyWith(fontSize: 12.sp), |
|
|
|
cursorColor: context.primaryColor, |
|
|
|
decoration: InputDecoration( |
|
|
|
contentPadding: const EdgeInsets.all(MySpaces.s14), |
|
|
|
contentPadding: const EdgeInsets.all(14), |
|
|
|
enabledBorder: const OutlineInputBorder( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(12)), |
|
|
|
borderSide: BorderSide(color: Color(0XFF5715BF), width: 1), |
|
|
|
@ -78,7 +78,7 @@ class MyInput extends StatelessWidget { |
|
|
|
fillColor: const Color(0XFF000000).withValues(alpha: 0.2), |
|
|
|
filled: true, |
|
|
|
hintText: hintText, |
|
|
|
hintStyle: Lexend.extraBold.copyWith(fontSize: 12), |
|
|
|
hintStyle: Lexend.extraBold.copyWith(fontSize: 12.sp), |
|
|
|
), |
|
|
|
onTapOutside: (event) { |
|
|
|
FocusManager.instance.primaryFocus?.unfocus(); |
|
|
|
|