opt reply item

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-10 20:17:15 +08:00
parent 3655c31a48
commit f4d3ec39a0
45 changed files with 71 additions and 74 deletions

View File

@@ -13,7 +13,7 @@ class CustomToast extends StatelessWidget {
.get(SettingBoxKey.defaultToastOp, defaultValue: 1.0) as double;
return Container(
margin:
EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom + 30),
EdgeInsets.only(bottom: MediaQuery.paddingOf(context).bottom + 30),
padding: const EdgeInsets.symmetric(horizontal: 17, vertical: 10),
decoration: BoxDecoration(
color:

View File

@@ -123,7 +123,7 @@ class _DynamicSliverAppBarMediumState extends State<DynamicSliverAppBarMedium> {
@override
Widget build(BuildContext context) {
final orientation = MediaQuery.of(context).orientation;
final orientation = MediaQuery.orientationOf(context);
if (orientation != _orientation) {
_orientation = orientation;
_height = 0;

View File

@@ -134,7 +134,7 @@ class _NineGridViewState extends State<NineGridView> {
return Rect.fromLTRB(0, 0, padding.horizontal, padding.vertical);
}
double width = widget.width ??
(MediaQuery.of(context).size.width - widget.margin.horizontal);
(MediaQuery.sizeOf(context).width - widget.margin.horizontal);
width = width - padding.horizontal;
double space = widget.space;
double itemW;
@@ -389,11 +389,11 @@ class _NineGridViewState extends State<NineGridView> {
/// get big image size.
Rect _getBigImgSize(double originalWidth, double originalHeight) {
double width = widget.width ??
(MediaQuery.of(context).size.width - widget.margin.horizontal);
(MediaQuery.sizeOf(context).width - widget.margin.horizontal);
width = width - widget.padding.horizontal;
double itemW = (width - widget.space * 2) / 3;
//double devicePixelRatio = MediaQuery.of(context)?.devicePixelRatio ?? 3;
// double devicePixelRatio = MediaQuery.devicePixelRatioOf(context);
double devicePixelRatio = 1.0;
double tempWidth = originalWidth / devicePixelRatio;
double tempHeight = originalHeight / devicePixelRatio;

View File

@@ -271,7 +271,7 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
children: [
InteractiveViewerBoundary(
controller: _transformationController,
boundaryWidth: MediaQuery.of(context).size.width,
boundaryWidth: MediaQuery.sizeOf(context).width,
onScaleChanged: _onScaleChanged,
onLeftBoundaryHit: _onLeftBoundaryHit,
onRightBoundaryHit: _onRightBoundaryHit,