mirror of
https://github.com/stonega/tsacdop
synced 2025-01-24 20:52:56 +01:00
11 lines
523 B
Dart
11 lines
523 B
Dart
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;
|
|
} |