mirror of
https://github.com/foss42/apidash.git
synced 2025-05-31 06:08:09 +08:00
refactor: move dialog to widgets
This commit is contained in:
29
lib/widgets/dialog_about.dart
Normal file
29
lib/widgets/dialog_about.dart
Normal file
@ -0,0 +1,29 @@
|
||||
import 'package:apidash/consts.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:apidash/widgets/widgets.dart';
|
||||
|
||||
showAboutAppDialog(
|
||||
BuildContext context,
|
||||
) {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return AlertDialog(
|
||||
contentPadding: kPt20 + kPh20 + kPb10,
|
||||
content: Container(
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
constraints: const BoxConstraints(maxWidth: 540, maxHeight: 544),
|
||||
child: const IntroMessage(),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
child: const Text("Close"),
|
||||
),
|
||||
],
|
||||
);
|
||||
});
|
||||
}
|
@ -10,7 +10,8 @@ export 'card_sidebar_request.dart';
|
||||
export 'checkbox.dart';
|
||||
export 'code_previewer.dart';
|
||||
export 'codegen_previewer.dart';
|
||||
export 'dialogs.dart';
|
||||
export 'dialog_about.dart';
|
||||
export 'dialog_rename.dart';
|
||||
export 'dropdown_codegen.dart';
|
||||
export 'dropdown_content_type.dart';
|
||||
export 'dropdown_formdata.dart';
|
||||
|
Reference in New Issue
Block a user