feat: 売上入力画面の保存ダイアログ実装完了

This commit is contained in:
joe 2026-03-07 21:58:47 +09:00
parent 5fe847a27f
commit 5a0d4f547e

View file

@ -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
}
}