Files
2021-04-03 19:41:21 +08:00

32 lines
943 B
Dart
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
/// create by 张风捷特烈 on 2020/9/21
/// contact me by email 1981462002@qq.com
/// 说明: 215 CheckedModeBanner 仅在debug运行模式中显示右上角角标没什么太大卵用。在 MaterialApp 组件源码中有使用场景。
// {
// "widgetId": 215,
// "name": 'CheckedModeBanner基本使用',
// "priority": 1,
// "subtitle":
// "【child】 : 组件 【Widget】",
// }
class CheckedModeBannerDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return CheckedModeBanner(
child: Container(
alignment: Alignment.center,
width: 250,
height: 150,
color: Theme.of(context).primaryColor,
child: Text(
"CheckedModeBanner",
style: TextStyle(color: Colors.white, fontSize: 20),
),
),
);
}
}