'Flutter. Mobile [android] web build doesn't show correct keyboard action button

I faced such problem that in the mobile version of the web build TextField changes the textInputAction on the keyboard panel. I reproduce it only on Android and don't know does it work wrong on iOS.

Source code where I declare TextField

TextField(
    keyboardType: TextInputType.text,
    textInputAction: TextInputAction.search,
    maxLines: 1,
),

and what I get

enter image description here

you can repoduce the problem by downloading this archive and extract internals.

  • in project root folder call next command with cmd:

     flutter build web --web-renderer html --release
    
  • connect your device using adb connect

  • open port 8000 for connection from your device with adb reverse tcp:8000 tcp:8000

  • start web-app with python -m http.server 8000 in [$PROJECT_FOLDER]/build/web

  • go to localhost:8000 on mobile device



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source