1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 14:58:34 +00:00

rename constants (#1047)

This commit is contained in:
Miguel Beltran
2022-03-08 02:08:53 +01:00
committed by GitHub
parent 07e99272f3
commit 35713ac2d9
9 changed files with 39 additions and 39 deletions

View File

@@ -14,14 +14,14 @@ void main() {
runApp(const MyApp());
}
const double kWindowWidth = 1200;
const double kWindowHeight = 800;
const double windowWidth = 1200;
const double windowHeight = 800;
void setupWindow() {
if (!kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
WidgetsFlutterBinding.ensureInitialized();
setWindowTitle('JSON Sample');
setWindowMinSize(const Size(kWindowWidth, kWindowHeight));
setWindowMinSize(const Size(windowWidth, windowHeight));
}
}