# 6.2 Styling

> Style your widgets with colors, fonts, padding, margins, borders and more.

- URL: https://www.appwriters.dev/courses/master-flutter/ch06-design/ls02-styling
- Course: Master Flutter (https://www.appwriters.dev/courses/master-flutter)
- Chapter: 6. Design

---

In this lesson we will learn about various ways to style our widgets. We will learn about colors, fonts, padding, margins, borders, and more.

## Projects

### 1. Login Form

Build a page with `ListView` inside which there are two `TextField` widgets and an `ElevatedButton`. The text fields should be separated by `20` points of vertical space. The button should be separated by `40` points of vertical space. The button should be centered horizontally.

> Note: Use a combination of `Container`, `Padding`, and `SizedBox` to achieve the desired layout.

### 2. Welcome Screen

Build the following welcome screen for a recipe application.

![Welcome Layout](/images/courses/master-flutter/ch06-ls02-pr02.png)

> Note: Use a combination of `Stack`, `Container`, `ElevatedButton`, `Icon` and more to achieve the desired layout.

## Resources

- [Colors Class](https://api.flutter.dev/flutter/material/Colors-class.html)
- [Text Style](https://api.flutter.dev/flutter/painting/TextStyle-class.html)
- [Box Decoration](https://api.flutter.dev/flutter/painting/BoxDecoration-class.html)
- [Border Radius](https://api.flutter.dev/flutter/painting/BorderRadius-class.html)
- [Border](https://api.flutter.dev/flutter/painting/Border-class.html)
- [Card](https://api.flutter.dev/flutter/material/Card-class.html)
