min window size (disabled)

This commit is contained in:
Морозов Андрей 2021-11-11 10:34:50 +00:00
parent 6fc7bbb2e5
commit 1f180172ec
1 changed files with 6 additions and 0 deletions

View File

@ -1,15 +1,21 @@
import 'package:graphs/pages/drawing_page.dart'; import 'package:graphs/pages/drawing_page.dart';
//import 'package:desktop_window/desktop_window.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
void main() { void main() {
runApp(const MyApp()); runApp(const MyApp());
} }
/*Future setupWindow() async {
await DesktopWindow.setMinWindowSize(const Size(850, 620));
}*/
class MyApp extends StatelessWidget { class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key); const MyApp({Key? key}) : super(key: key);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
//setupWindow();
return const MaterialApp( return const MaterialApp(
title: "Graphs", title: "Graphs",
home: DrawingPage(), home: DrawingPage(),