flutter/examples/splash/lib/main.dart
Michael Goderbauer b0f1714b7b
Make Flex,Row,Column const for real (#119673)
* Make Flex,Row,Column const for real

* dart fix --apply

* fix snippets

* fix integration test

* add comment
2023-02-02 19:33:57 +00:00

32 lines
917 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.
import 'package:flutter/material.dart';
void main() {
runApp(
const DecoratedBox(
decoration: BoxDecoration(color: Colors.white),
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
textDirection: TextDirection.ltr,
children: <Widget>[
FlutterLogo(size: 48),
Padding(
padding: EdgeInsets.all(32),
child: Text(
'This app is only meant to be run under the Flutter debugger',
textDirection: TextDirection.ltr,
textAlign: TextAlign.center,
style: TextStyle(color: Colors.black87),
),
),
],
),
),
),
);
}