Line data Source code
1 : import 'package:flutter/material.dart'; 2 : 3 : extension ContextExtension on BuildContext { 4 0 : ColorScheme get colorScheme => Theme.of(this).colorScheme; 5 0 : TextTheme get textTheme => Theme.of(this).textTheme; 6 0 : MediaQueryData get mediaQuery => MediaQuery.of(this); 7 0 : ThemeData get theme => Theme.of(this); 8 : }