This website or its third-party tools use cookies which are necessary to its functioning and required to improve your experience. By clicking the consent button, you agree to allow the site to use, collect and/or store cookies.
Please click the consent button to view this website.
I accept
Deny cookies Go Back

Mobile app tutorials

  • Home
  • About
  • Contact
  • Login
You are here: Home / Flutter / Flutter adding external packages

December 13, 2017 by nigel

Flutter adding external packages


 
The Flutter adding external packages development tutorial describes how to install third-party libraries to you flutter application.

Disclaimer: Note this is my first time on using the flutter development environment and dart programming language. So let’s learn flutter together and join me on my journey on where I learn how to create flutter applications using the dart programming language.

The flutter tutorial follows on from the hello world tutorial.

Pre-requisites

Knowledge of the dart programming language is not required, but the experience of an object orientated programming language is recommended. Such as Java, C++, Kotlin, Swift to name a few.

Introduction

In this flutter development tutorial we will cover:

  • How to install third party packages
  • How to import third part libraries in dart source code
  • Creating an immutable class instance
  • Calling a dart class method

Episodes

  1. Installing Flutter
  2. Downloading flutter project from GitHub
  3. The Hello World App
  4. Adding External Packages
  5. Stateful Widget
  6. Infinite Scrolling List
  7. Adding user interaction
  8. Switching screens

To get access to the source code and code descriptions please fill out the form below to complete your free membership:
An account with your username and/or email address has been created. Log in here to access your products or complete a purchase. [Note: an account will be created even if your initial transaction failed at checkout. If this happened to you, simply log in and attempt your transaction again.]


Conclusion

In this flutter tutorial we learned how to install and import an external package.
The example we used was the english_words library.

We also demonstrated how to create an immutable value using the dart keyword Final. The value of type WordPair was generated by calling the WordPair class random method.

We then replaced the Hello World text with wordPair value.

In the following flutter tutorial, we describe how to use the stateful widget for creating widgets which can have mutable properties.

Print Friendly

Filed Under: Flutter Tagged With: Dart, Dart Programming, Flutter, Install Flutter Packages

  • Facebook
  • Google+
  • Twitter
  • YouTube




Recent Forum Topics

  • Kotlin Fragments
  • Kotlin Camera2 API
  • HTTP Image Libraries

Recent Posts

  • Installing and running flutter
  • Kotlin Camera2 API MediaRecorder
  • Flutter IntelliJ Tips for Beginners
  • Migrating Fragments to Jetpack Navigation
  • Flutter TabBar

Recent Posts

  • Installing and running flutter
  • Kotlin Camera2 API MediaRecorder
  • Flutter IntelliJ Tips for Beginners
  • Migrating Fragments to Jetpack Navigation
  • Flutter TabBar

Search Form

  • Facebook
  • GitHub
  • Google+
  • Twitter
  • YouTube

© 2023 - WWW.MOBAPPTUTS.COM