You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
406 B
19 lines
406 B
import 'package:flutter/material.dart';
|
|
|
|
extension ContextExtentions on BuildContext {
|
|
double get height {
|
|
return MediaQuery.of(this).size.height;
|
|
}
|
|
|
|
double get width {
|
|
return MediaQuery.of(this).size.width;
|
|
}
|
|
|
|
double get horizontallyMargin {
|
|
return MediaQuery.of(this).size.width * 0.05;
|
|
}
|
|
|
|
double get verticallyMargin {
|
|
return MediaQuery.of(this).size.height * 0.025;
|
|
}
|
|
}
|