mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
rename constants (#1047)
This commit is contained in:
@@ -44,13 +44,13 @@ void main() {
|
||||
);
|
||||
}
|
||||
|
||||
const double kWindowWidth = 1024;
|
||||
const double kWindowHeight = 800;
|
||||
const double windowWidth = 1024;
|
||||
const double windowHeight = 800;
|
||||
|
||||
void setupWindow() {
|
||||
if (!kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
setWindowMinSize(const Size(kWindowWidth, kWindowHeight));
|
||||
setWindowMinSize(const Size(windowWidth, windowHeight));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user