Context Extension
You can use very easy context elements,
- For Example:
//context.theme is the same as Theme.of(context)
//context.colorScheme is the same as Theme.of(context).colorScheme
backgroundColor: context.colorScheme.inversePrimary
//context.theme is the same as Theme.of(context)
//context.textTheme is the same as Theme.of(context).textTheme
style: context.textTheme.headlineMedium
// .center() is the same as Center(child: Column(...))
Column().center()