mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

Based on feedback from various desktop developers, and to be consistent between the defaults and the sample code, this PR switches the default for visual density in desktop themes to be compact instead of standard. It also removes the same setting from the sample code generated by "flutter create" because it is no longer needed now that it is the default.
26 lines
551 B
Dart
26 lines
551 B
Dart
// Copyright 2014 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// @dart=2.10
|
|
import 'package:flutter/material.dart';
|
|
|
|
String? unused;
|
|
|
|
void main() {
|
|
runApp(MyApp());
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Flutter Demo',
|
|
theme: ThemeData(
|
|
primarySwatch: Colors.blue,
|
|
),
|
|
home: const Center(child: Text('hello, world'))
|
|
);
|
|
}
|
|
}
|