Some relative stuff

This commit is contained in:
2024-05-11 23:27:01 +03:00
parent 57ff8a59e8
commit 75bfc7ea6b
10 changed files with 200 additions and 19 deletions

11
lib/tools/relative.dart Normal file
View File

@@ -0,0 +1,11 @@
import 'package:flutter/material.dart';
Widget getSpacer(
{required BuildContext context, int flex = 1, double width = 10}) {
if (MediaQuery.of(context).size.width > 600) {
return Spacer(
flex: flex,
);
}
return SizedBox(width: width);
}