You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansu_ui/example/lib/example_dialog.dart

29 lines
672 B

import 'package:ansu_ui/ansu_ui.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
class ExampleDialog extends StatefulWidget {
ExampleDialog({Key key}) : super(key: key);
@override
_ExampleDialogState createState() => _ExampleDialogState();
}
class _ExampleDialogState extends State<ExampleDialog> {
@override
Widget build(BuildContext context) {
return ASScaffold(
title: '对话框 Dialog',
body: ListView(
children: [
ASButton.info(
title: '打开对话框',
onPressed: () {
Get.dialog(ASDialog());
}),
],
),
);
}
}