Loading Dialog Implementation in Flutter

Caner Kaya
Jan 29, 2021

In this tiny article i will implement a custom dialog as a newbee develeper in Flutter and Dart. May be it will help some of you.

Sooo. Our dialog will be a singleton object that contains a indicator and text. As you know, to make an object singleton you need a private constructor and static methods to handle your needs. I do not going in details about thecode. Because most of it about styling.

In Dart language, “_” is used for private access modifier. Here is the LoadingScreen class.

Now let’s test the code in main.dart

Thank you for reading article :). You can access the source codes of article from the repository.

https://github.com/canerky96/flutter_loading_dialog_article

--

--