This commit is contained in:
2026-08-31 09:57:40 +03:00
parent ece8e7ba79
commit b0c9f6dc17
2 changed files with 3 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ class _ScooterCodeInputScreenState extends State<ScooterCodeInputScreen> {
padding: const EdgeInsets.symmetric(horizontal: 24), padding: const EdgeInsets.symmetric(horizontal: 24),
child: BlocBuilder<ScooterCodeBloc, ScooterCodeState>( child: BlocBuilder<ScooterCodeBloc, ScooterCodeState>(
builder: (context, state) { builder: (context, state) {
final bool isCodeValid = state.code.length >= 5 && state.code.length <= 7; final bool isCodeValid = state.code.length >= 1;
return Column( return Column(
children: [ children: [
@@ -88,7 +88,7 @@ class _ScooterCodeInputScreenState extends State<ScooterCodeInputScreen> {
TextField( TextField(
controller: controller, controller: controller,
keyboardType: TextInputType.text, keyboardType: TextInputType.text,
maxLength: 7, // maxLength: 7,
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: const TextStyle(color: Colors.white, fontSize: 18), style: const TextStyle(color: Colors.white, fontSize: 18),
decoration: InputDecoration( decoration: InputDecoration(

View File

@@ -2,7 +2,7 @@ name: be_happy
description: "" description: ""
publish_to: 'none' publish_to: 'none'
version: 1.0.2+1 version: 1.0.3+1
environment: environment:
sdk: ^3.8.1 sdk: ^3.8.1