Commit 51e2ac36 authored by Dio Maulana's avatar Dio Maulana

memperbaiki struktur row dan column

parent 4787dbd4
......@@ -5,6 +5,7 @@ import 'package:second_display/bloc/orders_bloc.dart';
import 'package:second_display/models/order_detail.dart';
import 'package:second_display/models/orders.dart';
import 'package:intl/intl.dart';
import 'package:second_display/ui/settings/input_base_url.dart';
class OrderPage extends StatelessWidget {
final Color textColor;
......@@ -103,56 +104,34 @@ class OrderPage extends StatelessWidget {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
margin: EdgeInsets.only(
bottom: MediaQuery.of(context).size.height *
0.01),
child: Column(
Column(
children: [
Container(
// color: Colors.white,
height: MediaQuery.of(context).size.height *
0.05,
margin: EdgeInsets.only(
top:
MediaQuery.of(context).size.height *
0.005,
bottom:
MediaQuery.of(context).size.height *
0),
child: Row(
Row(
children: [
listOforder(
context,
Alignment.centerLeft,
double.tryParse(
detailOrder[i].quantity)
double.tryParse(detailOrder[i].quantity)
.toString() +
" x " +
detailOrder[i].name),
listOforder(
context,
Alignment.centerRight,
listOforder(context, Alignment.centerRight,
amountEachOrderText)
],
),
),
for (int i = 0;
i < orderOptionDetail.length;
i++)
Container(
// color: Colors.green,
height:
MediaQuery.of(context).size.height *
height: MediaQuery.of(context).size.height *
0.02,
margin: EdgeInsets.only(
top: MediaQuery.of(context)
.size
.height *
top:
MediaQuery.of(context).size.height *
0.000,
bottom: MediaQuery.of(context)
.size
.height *
bottom:
MediaQuery.of(context).size.height *
0.001),
child: Row(
children: [
......@@ -160,14 +139,13 @@ class OrderPage extends StatelessWidget {
context,
Alignment.topLeft,
orderOptionDetail[i].trim()),
listOforderOption(context,
Alignment.centerRight, '')
listOforderOption(
context, Alignment.centerRight, '')
],
),
),
],
),
)
],
);
},
......@@ -219,8 +197,19 @@ class OrderPage extends StatelessWidget {
SizedBox(
height:
MediaQuery.of(context).size.height * 0.02),
listTotalRincian(
GestureDetector(
onLongPress: () {
Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (BuildContext context) =>
const InputBaseUrl(),
),
);
},
child: listTotalRincian(
context, "Total", totalAmountText + ",-"),
),
],
);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment