2020-03-31 18:36:20 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
extension ContextExtension on BuildContext{
|
|
|
|
Color get primaryColor => Theme.of(this).primaryColor;
|
|
|
|
Color get accentColor => Theme.of(this).accentColor;
|
|
|
|
Color get scaffoldBackgroundColor => Theme.of(this).scaffoldBackgroundColor;
|
|
|
|
Color get primaryColorDark => Theme.of(this).primaryColorDark;
|
|
|
|
Brightness get brightness => Theme.of(this).brightness;
|
|
|
|
double get width => MediaQuery.of(this).size.width;
|
|
|
|
double get height => MediaQuery.of(this).size.width;
|
2020-04-02 11:52:26 +02:00
|
|
|
TextTheme get textTheme => Theme.of(this).textTheme;
|
2020-03-31 18:36:20 +02:00
|
|
|
}
|