Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to develop mobile keyboard app in flutter

We want to develop mobile keyboard app - (Third party keyboard) that have some unique features (such translate on the keyboard).

We would like to know if there is a way to developed it once both for IOS and Android, with Flutter, or any other solution?

like image 931
Pewh Gosh Avatar asked Apr 10 '18 06:04

Pewh Gosh


People also ask

How do you make your own keyboard on Flutter?

You Can Refer https://pub.dev/packages/keyboard_actions For Creating Custom Keyboard/ Add Features to Android/iOS in Simple way through Flutter. NOTE: 1. You should then run flutter packages upgrade or update your packages in IntelliJ/ Android Studio.

Can you build mobile apps with Flutter?

Flutter is Google's UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source. In this codelab, you'll create a simple mobile Flutter app.

How do I manage my keyboard on Flutter?

Calling or dismissing the keyboard on tap If the application requires filling a form with user data, there might be more text fields on that screen. Some might need only text input, and some only numbers or both. Tapping on these widgets will cause the keyboard to open.

Can we develop Android app using Flutter?

Flutter is an open source framework developed by Google that lets you build natively compiled, multiplatform applications from a single codebase. Flutter 3 supports six platform targets: Android, iOS, Windows, macOS, Linux, and web applications.

Which software can be used to build a Flutter app?

You can install Visual Studio Code, Android Studio, IntelliJ IDEA. Also install the Flutter and Dart plugins to enable language support and tools for refactoring, running, debugging, and reloading your web app within an editor. See setting up an editor for more details.


1 Answers

There's a long and a short answer to this. The short answer is basically no, it's not feasible at this time to do this.

The long answer is that it may be somewhat possible but with a fairly large amount of work for you to do. You're going to have to first create and appropriate project type in android and ios, and then import the dart code & set up the build. You may be able to start with a normal flutter application and modify the xcode/gradle builds to match the specifics for ios/android, but I'd guess that's somewhat unlikely. So you'll probably still have to maintain two separate projects, but which could import the same dart library for the UI.

Because Android and iOS use different APIs for their keyboards, you're going to need to write a Platform Plugin or at least method channels which communicate between your app and the native code, for each of iOS and Android. You'll also probably have to embed the flutter view yourself - see this example as I'd bet the normal FlutterApplication etc won't apply.

I'd guess that on android you could probably get this to work eventually with a lot of work (depending on how familiar you are with android, platform channels, and integrating libraries such as flutter's into the build); on iOS you might have luck but it's somewhat conceivable that iOS blocks certain features that flutter needs in the keyboard for performance or security reasons - just guessing from my experiences developing apps in native iOS although I haven't done a keyboard specifically.

That being said, if you do try this I'd be interested to hear the results, and if you were to go about it in a somewhat generic way that could be re-used it would be of great benefit to the flutter community!

like image 78
rmtmckenzie Avatar answered Sep 30 '22 17:09

rmtmckenzie