mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
支持添加删除服务器信息,以在服务器状态页显示CPU、内存等
This commit is contained in:
25
lib/view/widget/card_dialog.dart
Normal file
25
lib/view/widget/card_dialog.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class CardDialog extends StatelessWidget {
|
||||
const CardDialog(
|
||||
{Key? key, this.title, this.content, this.actions, this.padding})
|
||||
: super(key: key);
|
||||
|
||||
final Widget? content;
|
||||
final List<Widget>? actions;
|
||||
final Widget? title;
|
||||
final EdgeInsets? padding;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
contentPadding: padding ?? const EdgeInsets.fromLTRB(24, 17, 24, 7),
|
||||
shape: const RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.all(Radius.circular(20.0)),
|
||||
),
|
||||
title: title,
|
||||
content: content,
|
||||
actions: actions,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user