mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
fixes bugs and re add checkboxes theme
This commit is contained in:
17
lib/utils/extension/build_context_x.dart
Normal file
17
lib/utils/extension/build_context_x.dart
Normal file
@ -0,0 +1,17 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
extension BuildContextExt on BuildContext {
|
||||
ThemeData get theme => Theme.of(this);
|
||||
|
||||
TextTheme get textTheme => Theme.of(this).textTheme;
|
||||
|
||||
AppBarTheme get appBarTheme => Theme.of(this).appBarTheme;
|
||||
|
||||
Size get screenSize => MediaQuery.of(this).size;
|
||||
|
||||
double get screenWidth => MediaQuery.of(this).size.width;
|
||||
|
||||
double get screenHeight => MediaQuery.of(this).size.height;
|
||||
|
||||
double get textScale => MediaQuery.textScalerOf(this).scale(1);
|
||||
}
|
Reference in New Issue
Block a user