#3 Flutter + Dart Tips

Bhavik Makwana
Flutter Community
Published in
3 min readMay 3, 2019

--

I started writing article series on Tips shared by Flutter community and myself that can help us in Flutter and Dart a lot.

Here is the #3 article in this series. If you have missed previous articles then you can check them out here.

7. Want to set different Theme for a particular widget ?

Just wrap the widget with the Theme Widget and pass the ThemeData().
A Tip by

.

8. Cascade Notation — Method Chaining on Steroids 💊💉

Cascades Notation (..) allows to chain a sequence of operations on same object. In addition, fields (data-members) can be accessed using the same.

Open in DartPad 🎯

A Tip by

9. Want to log data on the system console in Flutter?

You can use the print() function to view it in the system console. If your output is too much, then Android sometimes discards some log lines. To avoid this, you can use debugPrint().

You can also log your print calls to disk if your doing long-term or background work.
Check out this Gist by Simon Lightfoot.

10. Having trouble displaying splashes using an InkWell?

Use an Ink widget! The Ink widget draws on the same widget that InkWell does, so the splash appears.

#FlutterFriday tweet by Flutter.dev.

Learn more here.

The example shown here are may not be perfect but it is to showcase how you can utilize this in your Flutter development.

That’s all for #3 edition of this series. If you have any Tips to share with Flutterverse then assemble and Start sharing it.

Make a PR in below repository with your Tip.

If you found this article helpful click and hold 👏 button and show some love to this article and help others to find this article.

Feeling more generous, You can buy me a cup of tea.

Have a great and Fluttericious day.

--

--

Bhavik Makwana
Flutter Community

Flutter Enthusiast | Google Certified Associate Android Developer | Speaker for flutter | Android Dev | Flutter Dev