modern rename peer dialog
This commit is contained in:
parent
561d2bfb1f
commit
baea9e529d
@ -682,21 +682,30 @@ abstract class BasePeerCard extends StatelessWidget {
|
|||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(labelText: translate('Name')),
|
||||||
border: OutlineInputBorder(),
|
|
||||||
labelText: translate('Name')),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Obx(() => Offstage(
|
Obx(() => Offstage(
|
||||||
offstage: isInProgress.isFalse,
|
offstage: isInProgress.isFalse,
|
||||||
child: const LinearProgressIndicator())),
|
child: const LinearProgressIndicator())),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
ElevatedButton.icon(
|
||||||
|
icon: Icon(Icons.close_rounded),
|
||||||
|
label: Text(translate("Cancel")),
|
||||||
|
onPressed: close,
|
||||||
|
),
|
||||||
|
ElevatedButton.icon(
|
||||||
|
icon: Icon(Icons.done_rounded),
|
||||||
|
label: Text(translate("Ok")),
|
||||||
|
onPressed: submit,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
).paddingOnly(top: 20)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
actions: [
|
|
||||||
dialogButton("Cancel", onPressed: close, isOutline: true),
|
|
||||||
dialogButton("OK", onPressed: submit),
|
|
||||||
],
|
|
||||||
onSubmit: submit,
|
onSubmit: submit,
|
||||||
onCancel: close,
|
onCancel: close,
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user