Flutter provides the intl package for formatting dates, which is part of the Flutter SDK. You can import it into your project using the following
Category: Flutter
This example shows you how to add a custom font in Flutter. To display a string in flutter we use Text widget. Text – displays
TextField has a lot of different configurations. Let’s discover how to set the color of the cursor. TextField has cursorColor parameter. Full source code: Read
This example shows you how to set keyboard type on TextField in Flutter. TextField has keyboardType parameter. Name: Email: Phone number: Datetime: Full source code:
We going to use OutlinedButton and DecoratedBox to develop the button with a custom shadow. DecoratedBox is a widget that paints a Decoration either before
How to add the Modal Bottom Sheet. We can use the embedded function showModalBottomSheet. A modal bottom sheet is an alternative to a menu or
How to set a gradient background for the Container. We will need the decoration attribute in Container. LinearGradient is used by BoxDecoration to represent linear
Here is an example of how to build the bottom navigation bar. NavigationBar is included in flutter/material.dart package.This widget allows toggle between your screens. Structure
This is the widget to work with Future objects. If you need to build a widget that should consume a Future object – FutureBuilder is
To log the large string you can use the log method from dart:developer All you need is just add to the import block this: And