mirror of
https://github.com/flutter/samples.git
synced 2025-11-11 07:18:15 +00:00
24 lines
561 B
Dart
24 lines
561 B
Dart
// Copyright 2018 The Chromium 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_web/material.dart';
|
|
|
|
class StackDemo extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return DecoratedBox(
|
|
decoration: BoxDecoration(
|
|
border: Border.all(
|
|
color: Colors.greenAccent,
|
|
width: 1.0,
|
|
),
|
|
),
|
|
child: Stack(children: [
|
|
Text('A'),
|
|
Text('B'),
|
|
]),
|
|
);
|
|
}
|
|
}
|