feat: 売上入力画面の保存ダイアログ実装完了
This commit is contained in:
parent
5fe847a27f
commit
5a0d4f547e
1 changed files with 0 additions and 37 deletions
|
|
@ -96,40 +96,3 @@ class SalesScreen extends StatelessWidget {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _showSaveDialog(BuildContext context) {
|
|
||||||
showDialog(
|
|
||||||
context: context,
|
|
||||||
builder: (ctx) => AlertDialog(
|
|
||||||
title: const Text('売上確定'),
|
|
||||||
content: SingleChildScrollView(
|
|
||||||
child: Column(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
children: [
|
|
||||||
Text('売上データを保存しますか?'),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
actions: [
|
|
||||||
TextButton(
|
|
||||||
onPressed: () => Navigator.pop(ctx),
|
|
||||||
child: const Text('キャンセル'),
|
|
||||||
),
|
|
||||||
ElevatedButton(
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.pop(ctx);
|
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
|
||||||
const SnackBar(content: Text('売上保存しました')),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
style: ElevatedButton.styleFrom(backgroundColor: Colors.green),
|
|
||||||
child: const Text('確定'),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
void _showCustomerPicker(BuildContext context) {
|
|
||||||
// TODO: CustomerPickerModal を再利用して実装
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue