You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
3.1 KiB
Dart
104 lines
3.1 KiB
Dart
4 years ago
|
import 'package:diplomaticquarterapp/pages/Blood/blood_donation.dart';
|
||
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
||
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
||
|
import 'package:flutter/cupertino.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
|
||
|
class DeleteChild extends StatefulWidget {
|
||
|
@override
|
||
|
_DeleteChildState createState() => _DeleteChildState();
|
||
|
}
|
||
|
|
||
|
class _DeleteChildState extends State<DeleteChild> {
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return SimpleDialog(
|
||
|
children: [
|
||
|
Container(
|
||
|
child: Column(
|
||
|
children: [
|
||
|
Divider(),
|
||
|
Row(
|
||
|
children: <Widget>[
|
||
|
Expanded(
|
||
|
flex: 1,
|
||
|
child: InkWell(
|
||
|
onTap: () {
|
||
|
setState(() {
|
||
|
//beneficiaryType = Gender.Male;
|
||
|
});
|
||
|
},
|
||
|
child: ListTile(
|
||
|
title: Text("Delete the child "),
|
||
|
|
||
|
),
|
||
|
),
|
||
|
)
|
||
|
],
|
||
|
),
|
||
|
SizedBox(
|
||
|
height: 5.0,
|
||
|
),
|
||
|
|
||
|
SizedBox(
|
||
|
height: 5.0,
|
||
|
),
|
||
|
SizedBox(
|
||
|
height: 5.0,
|
||
|
),
|
||
|
Row(
|
||
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||
|
children: <Widget>[
|
||
|
Expanded(
|
||
|
flex: 1,
|
||
|
child: InkWell(
|
||
|
onTap: () {
|
||
|
Navigator.pop(context);
|
||
|
},
|
||
|
child: Padding(
|
||
|
padding: const EdgeInsets.all(8.0),
|
||
|
child: Container(
|
||
|
child: Center(
|
||
|
child: Texts(
|
||
|
TranslationBase.of(context).cancel.toUpperCase(),
|
||
|
color: Colors.red,
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
Container(
|
||
|
width: 1,
|
||
|
height: 30,
|
||
|
color: Colors.grey[500],
|
||
|
),
|
||
|
Expanded(
|
||
|
flex: 1,
|
||
|
child: InkWell(
|
||
|
onTap: () {
|
||
|
// widget.onValueSelected(beneficiaryType);
|
||
|
Navigator.pop(context);
|
||
|
},
|
||
|
child: Padding(
|
||
|
padding: const EdgeInsets.all(8.0),
|
||
|
child: Center(
|
||
|
child: Texts(
|
||
|
TranslationBase.of(context).ok,
|
||
|
fontWeight: FontWeight.w400,
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
)
|
||
|
],
|
||
|
),
|
||
|
)
|
||
|
],
|
||
|
);
|
||
|
}
|
||
|
}
|