mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 22:38:42 +00:00
rename constants (#1047)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user