cpd_2022_zi/lib/widgets/missing_config_popup.dart

23 lines
526 B
Dart
Raw Normal View History

2023-02-17 13:47:52 +01:00
import 'package:flutter/material.dart';
class MissingConfigPopup extends StatelessWidget {
2023-02-20 19:32:23 +01:00
final String title;
final String text;
const MissingConfigPopup(
{super.key, required this.title, required this.text});
2023-02-17 13:47:52 +01:00
@override
Widget build(BuildContext context) {
return AlertDialog(
2023-02-20 19:32:23 +01:00
title: Text(title),
2023-02-17 13:47:52 +01:00
content: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
2023-02-20 19:32:23 +01:00
children: <Widget>[
Text(text),
2023-02-17 13:47:52 +01:00
],
),
);
}
}