Using the Different Style Widgets and Properties in Dart's Flutter Framework

in #utopian-io6 years ago (edited)

What Will I Learn?

  • You will learn how to use box decoration and text style widgets
  • You will learn how to use the transform widget
  • You will learn how to use the rich text and text span widgets
  • You will learn how to apply box shadows, radial gradients, and matrix transforms to widgets

Requirements

Difficulty

  • Intermediate

Description

In this flutter video tutorial, we look at the many different styling widgets in the flutter framework in more depth. This includes the box decoration widget, the text style widget, box shadow widgets, the alignment properties, text align properties, transformation properties, the transform widget and a few others. We start by looking at the many ways that we can transform and style our text in flutter. We can select different font weights, font families, font sizes and font styles to manipulate how our text looks. This includes importing custom fonts as assets into our project through the pubspec.yaml file.

We then look at some of the ways that we can change a container widget. We can scale the widget, we can add shadowing, change the border shape, change the overall shape, alter the scaling, rotate the widget and apply many different color combinations and gradients to our containers. We look at the transform widget which lets us take a matrix 4 object and then apply a method to it. This method allows us to change the children of this widget based on the values of the matrix transformation.

Finally, we look at the rich text widget and the text span widget. These widgets are mainly for creating large text widget trees in flutter. The rich text widget is specifically made for large blocks of text and the text span widgets act like spans from an HTML document. They allow us to select and override the styling of the parent to individually style the words and the sentences in the text block.

The source code for this project can be found here

Video Tutorial

Curriculum



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Again, thank you for moderating my contributions.

Hey @ewq, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

Hey @tensor I am @utopian-io. I have just upvoted you!

Achievements

  • WOW WOW WOW People loved what you did here. GREAT JOB!
  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.28
TRX 0.13
JST 0.033
BTC 62873.38
ETH 3037.14
USDT 1.00
SBD 3.63