Graphs_dart/flutter/lib/main.dart

25 lines
526 B
Dart
Raw Permalink Normal View History

2021-11-05 00:35:51 +03:00
import 'package:graphs/pages/drawing_page.dart';
2021-11-12 01:02:22 +03:00
import 'package:desktop_window/desktop_window.dart';
2021-11-05 00:35:51 +03:00
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
2021-11-12 01:02:22 +03:00
Future setupWindow() async {
await DesktopWindow.setMinWindowSize(const Size(850, 700));
}
2021-11-11 13:34:50 +03:00
2021-11-05 00:35:51 +03:00
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
2021-11-12 01:02:22 +03:00
setupWindow();
2021-11-05 00:35:51 +03:00
return const MaterialApp(
title: "Graphs",
home: DrawingPage(),
);
}
}