样式调整
This commit is contained in:
@@ -152,7 +152,13 @@ class ReservationPage extends GetView<C_ReservationController> {
|
||||
),
|
||||
),
|
||||
IconButton(
|
||||
onPressed: () => Get.to(() => const MessagePage()),
|
||||
onPressed: () async{
|
||||
var scanResult = await Get.to(() => const MessagePage());
|
||||
if (scanResult == null) {
|
||||
controller.msgNotice();
|
||||
}
|
||||
|
||||
},
|
||||
icon: Badge(
|
||||
smallSize: 8,
|
||||
backgroundColor: controller.isNotice
|
||||
@@ -519,7 +525,7 @@ class ReservationPage extends GetView<C_ReservationController> {
|
||||
color: Colors.white,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(13.0),
|
||||
padding: EdgeInsets.all(13.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
@@ -570,15 +576,19 @@ class ReservationPage extends GetView<C_ReservationController> {
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: () => _updateAmount(-1),
|
||||
icon: const Icon(Icons.remove, size: 18, color: Colors.grey),
|
||||
icon: Icon(Icons.remove, size: 14.sp, color: Colors.grey),
|
||||
),
|
||||
Text(
|
||||
"${controller.amountController.text} Kg",
|
||||
style: const TextStyle(fontSize: 14, color: Colors.black87),
|
||||
"${controller.amountController.text}Kg",
|
||||
style: TextStyle(
|
||||
fontSize: 11.sp,
|
||||
color: Colors.black87,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
IconButton(
|
||||
onPressed: () => _updateAmount(1),
|
||||
icon: const Icon(Icons.add, size: 18, color: Colors.grey),
|
||||
icon: Icon(Icons.add, size: 14.sp, color: Colors.grey),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -758,6 +768,9 @@ class ReservationPage extends GetView<C_ReservationController> {
|
||||
controller.amountController.text = newAmount.toStringAsFixed(2);
|
||||
}
|
||||
|
||||
//更新进度条
|
||||
controller.current = newAmount;
|
||||
|
||||
// 移动光标到末尾,防止光标跳到前面
|
||||
controller.amountController.selection = TextSelection.fromPosition(
|
||||
TextPosition(offset: controller.amountController.text.length),
|
||||
|
||||
Reference in New Issue
Block a user