flutter_form_builder icon indicating copy to clipboard operation
flutter_form_builder copied to clipboard

[FormBuilderDateTimePicker] with samsung keyboard number display only

Open ducdac opened this issue 3 years ago • 4 comments

image

ducdac avatar May 19 '22 04:05 ducdac

To change the input mode for your FormBuilderDateTimePicker, use the initialEntryMode attribute, like so:

FormBuilderDateTimePicker(
    name: 'date',
    initialEntryMode: DatePickerEntryMode.calendar,
    initialValue: DateTime.now(),
}

Note: The calendar icon on the top right allows you to switch between the different input modes.

danvick avatar May 19 '22 19:05 danvick

Kindly let us know if this solves your problem

danvick avatar May 19 '22 19:05 danvick

@danvick my code: FormBuilderDateTimePicker( name: 'date', inputType: InputType.date, keyboardType: TextInputType.datetime, initialValue: control.phieumuahang.ngayPhieu, format: f.getDateFormat(), locale: const Locale('de', 'DE'), ), initialEntryMode default is DatePickerEntryMode.calendar, when i click on the top right icon only the numeric keypad shows. it only works on samsung devices, but on other devices it shows the correct datetime keyboard.

ducdac avatar May 20 '22 01:05 ducdac

Hi @ducdac This package use the default inputs from material to build the form inputs. I found some issues related in flutter repository:

  • https://github.com/flutter/flutter/issues/71670
  • https://github.com/flutter/flutter/issues/62401
  • https://github.com/flutter/flutter/issues/59685

I think that this problem is originated by flutter dependency

deandreamatias avatar Sep 17 '22 15:09 deandreamatias