Aswin Gopinathan  🇮🇳 Profile picture
Dec 19, 2021 23 tweets 6 min read Read on X
A 🧵 on my favourite 20 CLI commands for Dart and Flutter Developers!

#flutter #flutterdev
1. Create a Dart application
2. Run a Dart file
3. Create a dart-server application which you can use to write server-side code.
4. Create a web-application using pure dart.
5. Create a console application in Dart
6. List all the available channels for Flutter

Master, dev, beta, stable
7. Switch to a specific flutter channel
8. Upgrade a particular channel
9. Create a new Flutter app using swift as iOS language and kotlin as android language.
10. An alternative to the above command
11. List all the available emulators
12. Launch a specific emulator
13. If you have an iOS simulator, you can launch it using this.
14. Run the Flutter app
15. Run the Flutter app on a specific emulator/simulator
16. Analyse the Dart code
17. Run tests using the directory that contains the test code.
18. Get all the packages included in pubspec.yaml file
19. Build deliverables for all the 3 platforms
20. Show the logs of a running application in the terminal
So, these are my favourite commands for Dart and Flutter applications.

If you liked it, don’t forget to like and retweet the first tweet so that it can reach more wonderful devs like you.
Follow @GopinathanAswin for more threads like this.

As I learn new things, I will share more on this wonderful space 💙

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Aswin Gopinathan  🇮🇳

Aswin Gopinathan  🇮🇳 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @GopinathanAswin

Dec 22, 2021
Ever thought about using Dart for your server-side code?

I call it "Dart-as-a-backend".

This 🧵 talks about various Dart packages that you can use to write your server-side code using Dart.

#flutter #flutterdev
1. shelf

It's a tooling package published by the Dart team. Shelf makes it easy to create a basic web server and parts of a web server.

It is a Web server middleware for Dart.

pub.dev/packages/shelf
2. shelf_router

It is used for defining various routes for your web server. Requests can come in for different endpoints like /api, /user, or even with different HTTP methods like GET, POST, etc.
shelf_router routes them to their appropriate handlers.

pub.dev/packages/shelf…
Read 14 tweets
Dec 20, 2021
This thread consists of all the 🧵s i have written on various concepts in Dart and Flutter!

I will update this as i go on…

Anything for this wonderful community that has given me everything 💙

#flutter #flutterdev
Read 11 tweets
Dec 20, 2021
You have used em' but you wanna know how it works.

A brief introduction to Closures in Dart 💙

A thread 🧵
So, how do you define the onTap callback for GestureDetector?

Something like this right 👇🏻
So, what is the datatype of the data member onTap?

It is ----> void Function()

But, if you open the code for GestureDetector, onTap will be of type "GestureTapCallback", which inturn is an alias for : void Function()
Read 14 tweets
Dec 18, 2021
Final vs Const

A 🧵on the battle of Immutability ⚔️

#flutter #flutterdev
Immutability means you cannot change the data stored in a variable during the entire life time of your app.

But why do we use immutable variables ?
Imagine you are working on an exam portal for your school. You are given the task of building an on-screen scientific calculator.

The most common symbol you use in maths is π (Pi) which is equal to 3.1415.

This remains the same even after 100 years right ?
Read 19 tweets
Dec 17, 2021
Everything you need to know about Widget Lifecycle in Flutter

A thread 🧵

#flutter #flutterdev
There are two types of Widgets in Flutter:

1. Stateless Widget : They do not change their state throughout the lifetime of your application. They are like a constant widget.

2. Stateful Widget: They are dynamic, they change their state based on the External Interactions.
A side note: Stateless widgets can change their state if some state management tools are used like Provider, Bloc, etc

But that’s out of the scope of this thread.

Let’s continue 👇🏻
Read 19 tweets
Dec 15, 2021
Mockito + Unit Testing in Flutter 101

This thread talks about Verify and Stubbing using Mockito🧵

#flutter #flutterdev
If you are pretty new to Unit Testing, I suggest you read through my previous thread on Unit Testing:

So, what is Mockito and why do we need to use them while testing?

👇🏻
Read 18 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(