Kinda Code
Home/Flutter/Page 12

Flutter

Flutter and Dart tutorials, tips & tricks
How to disable Web and Desktop support in Flutter

How to disable Web and Desktop support in Flutter

Updated: Apr 23, 2023
If your goal with Flutter is just to build apps for Android and iOS, then you can disable web and desktop-related things. This makes your projects a little cleaner and lighter. Solution Web In order to disable web in your......
Flutter: Correctly adding GoogleServices-Info.plist to iOS

Flutter: Correctly adding GoogleServices-Info.plist to iOS

Updated: Apr 23, 2023
If you’re building an iOS app with Flutter and Firebase then you’ll have to add a GoogleServices-Info.plist file to your project. If you just copy and paste this file into the Runner folder then there will be an error when......
Flutter: Make a TextField Read-Only or Disabled

Flutter: Make a TextField Read-Only or Disabled

Updated: Apr 23, 2023
This article shows you how to make a TextFiled read-only or disabled in Flutter. Overview If a TextField is disabled, it can not be focused and ignores taps. We can control whether a TextField is disabled or enabled by setting......
Flutter: Add a Character Counter to TextField

Flutter: Add a Character Counter to TextField

Updated: Apr 23, 2023
This article shows you how to add a custom character counter to a TextField (you can also use TextFormField as well) in Flutter. Overview Here’s the main points: 1. We will display the number of characters entered......
Example of Loading Indicator in Flutter

Example of Loading Indicator in Flutter

Updated: Apr 23, 2023
A simple example of using a loading indicator in Flutter. We’ll make a tiny Flutter app that contains a button. When the user clicks that button, a loading indicator will show up for 5 seconds and then disappear. The......
How to Add a Drop Shadow to Text in Flutter

How to Add a Drop Shadow to Text in Flutter

Updated: Apr 23, 2023
Shadow effects for text are increasingly used in web and mobile applications, aiming to enhance the user experience. In this article, you’ll learn how to add shadow effects to Text widgets in Flutter through some instructions and a......
Flutter: Vertically center a widget inside a Container

Flutter: Vertically center a widget inside a Container

Updated: Apr 23, 2023
This article walks you through 4 techniques to vertically center a child widget inside a Container in Flutter. Using the alignment property Set the alignment property to Alignment.center, Alignment.centerRight, or......
Flutter: Make a simple Color Picker from scratch

Flutter: Make a simple Color Picker from scratch

Updated: Apr 23, 2023
This article will guide you to making a color picker from scratch in Flutter without using any third-party plugins. Introduction Color picker is a thing that frequently appears in many kinds of apps like notes, todos, social......
Using AnimatedIcon in Flutter

Using AnimatedIcon in Flutter

Updated: Apr 23, 2023
There are cases where you will want an icon that can change its own appearance like a play/pause button for a video or audio, a button to close/open a menu, etc. Luckily, you can achieve your goal with a few lines of code by using......
Flutter: Copy To Clipboard example (without any plugins)

Flutter: Copy To Clipboard example (without any plugins)

Updated: Apr 23, 2023
There may be situations where you want to implement Copy To Clipboard feature which allows users to copy some text (URLs, phone numbers, profile IDs…) from your app to another app (web browsers, chat apps…). The example......
Flutter Date Picker example

Flutter Date Picker example

Updated: Apr 23, 2023
Flutter has a built-in function named showDatePicker that can help us easily implement a date picker. Example Preview: If you want to format the selected date to make it look better, see this article: 4 Ways to Format......
How to locally save data in Flutter using shared_preferences

How to locally save data in Flutter using shared_preferences

Updated: Apr 23, 2023
To store some simple data persistently, you can use the shared_preferences plugin. Data has persisted to disk asynchronously so you need to use Future, async, await. If you aren’t familiar with them, check this......