Restructure some things
This commit is contained in:
parent
99f15fda36
commit
d4bbca6405
9 changed files with 174 additions and 81 deletions
31
lib/tests/alert.dart
Normal file
31
lib/tests/alert.dart
Normal file
|
@ -0,0 +1,31 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:libacflutter/Alert.dart';
|
||||
import 'package:libacflutter/Constants.dart';
|
||||
|
||||
class TestAlert extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text("Alert Dialog Null Callback Test"),
|
||||
backgroundColor: LibACFlutterConstants.TITLEBAR_COLOR),
|
||||
body: Center(
|
||||
child: ElevatedButton(
|
||||
onPressed: () async {
|
||||
await showAdaptiveDialog(
|
||||
context: context,
|
||||
builder: (builder) {
|
||||
return Alert(
|
||||
title: "Test Alert",
|
||||
body: "This is a test that you can ignore");
|
||||
});
|
||||
|
||||
exit(0);
|
||||
},
|
||||
child: Text("Test Null Alert")),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue