mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-25 08:38:45 +00:00
desktop single field edit gui tweaks
This commit is contained in:
parent
a92040194a
commit
4191ec81d3
2 changed files with 24 additions and 2 deletions
lib
|
@ -9,6 +9,7 @@ import 'package:stackwallet/widgets/conditional_parent.dart';
|
|||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_dialog_close_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/primary_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||
|
@ -186,10 +187,31 @@ class _SingleFieldEditViewState extends State<SingleFieldEditView> {
|
|||
condition: isDesktop,
|
||||
builder: (child) => Padding(
|
||||
padding: const EdgeInsets.all(32),
|
||||
child: child,
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: SecondaryButton(
|
||||
label: "Cancel",
|
||||
buttonHeight: ButtonHeight.l,
|
||||
onPressed: () {
|
||||
if (mounted) {
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
},
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 16,
|
||||
),
|
||||
Expanded(
|
||||
child: child,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
child: PrimaryButton(
|
||||
label: "Save",
|
||||
buttonHeight: isDesktop ? ButtonHeight.l : null,
|
||||
onPressed: () {
|
||||
if (mounted) {
|
||||
Navigator.of(context).pop(_textController.text);
|
||||
|
|
|
@ -52,7 +52,7 @@ class SimpleEditButton extends StatelessWidget {
|
|||
builder: (context) {
|
||||
return DesktopDialog(
|
||||
maxWidth: 580,
|
||||
maxHeight: 360,
|
||||
maxHeight: 300,
|
||||
child: SingleFieldEditView(
|
||||
initialValue: editValue!,
|
||||
label: editLabel!,
|
||||
|
|
Loading…
Reference in a new issue