Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
second_display
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dio Maulana
second_display
Commits
51e2ac36
Commit
51e2ac36
authored
Apr 07, 2022
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memperbaiki struktur row dan column
parent
4787dbd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
54 deletions
+43
-54
orders.dart
lib/ui/orders.dart
+43
-54
No files found.
lib/ui/orders.dart
View file @
51e2ac36
...
@@ -5,6 +5,7 @@ import 'package:second_display/bloc/orders_bloc.dart';
...
@@ -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/order_detail.dart'
;
import
'package:second_display/models/orders.dart'
;
import
'package:second_display/models/orders.dart'
;
import
'package:intl/intl.dart'
;
import
'package:intl/intl.dart'
;
import
'package:second_display/ui/settings/input_base_url.dart'
;
class
OrderPage
extends
StatelessWidget
{
class
OrderPage
extends
StatelessWidget
{
final
Color
textColor
;
final
Color
textColor
;
...
@@ -103,71 +104,48 @@ class OrderPage extends StatelessWidget {
...
@@ -103,71 +104,48 @@ class OrderPage extends StatelessWidget {
return
Row
(
return
Row
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
children:
[
Container
(
Column
(
margin:
EdgeInsets
.
only
(
children:
[
bottom:
MediaQuery
.
of
(
context
).
size
.
height
*
Row
(
0.01
),
children:
[
child:
Column
(
listOforder
(
children:
[
context
,
Alignment
.
centerLeft
,
double
.
tryParse
(
detailOrder
[
i
].
quantity
)
.
toString
()
+
" x "
+
detailOrder
[
i
].
name
),
listOforder
(
context
,
Alignment
.
centerRight
,
amountEachOrderText
)
],
),
for
(
int
i
=
0
;
i
<
orderOptionDetail
.
length
;
i
++)
Container
(
Container
(
// color: Colors.
white
,
// color: Colors.
green
,
height:
MediaQuery
.
of
(
context
).
size
.
height
*
height:
MediaQuery
.
of
(
context
).
size
.
height
*
0.0
5
,
0.0
2
,
margin:
EdgeInsets
.
only
(
margin:
EdgeInsets
.
only
(
top:
top:
MediaQuery
.
of
(
context
).
size
.
height
*
MediaQuery
.
of
(
context
).
size
.
height
*
0.00
5
,
0.00
0
,
bottom:
bottom:
MediaQuery
.
of
(
context
).
size
.
height
*
MediaQuery
.
of
(
context
).
size
.
height
*
0
),
0
.001
),
child:
Row
(
child:
Row
(
children:
[
children:
[
listOforder
(
listOforder
Option
(
context
,
context
,
Alignment
.
centerLeft
,
Alignment
.
topLeft
,
double
.
tryParse
(
orderOptionDetail
[
i
].
trim
()),
detailOrder
[
i
].
quantity
)
listOforderOption
(
.
toString
()
+
context
,
Alignment
.
centerRight
,
''
)
" x "
+
detailOrder
[
i
].
name
),
listOforder
(
context
,
Alignment
.
centerRight
,
amountEachOrderText
)
],
],
),
),
),
),
for
(
int
i
=
0
;
],
i
<
orderOptionDetail
.
length
;
),
i
++)
Container
(
// color: Colors.green,
height:
MediaQuery
.
of
(
context
).
size
.
height
*
0.02
,
margin:
EdgeInsets
.
only
(
top:
MediaQuery
.
of
(
context
)
.
size
.
height
*
0.000
,
bottom:
MediaQuery
.
of
(
context
)
.
size
.
height
*
0.001
),
child:
Row
(
children:
[
listOforderOption
(
context
,
Alignment
.
topLeft
,
orderOptionDetail
[
i
].
trim
()),
listOforderOption
(
context
,
Alignment
.
centerRight
,
''
)
],
),
),
],
),
)
],
],
);
);
},
},
...
@@ -219,8 +197,19 @@ class OrderPage extends StatelessWidget {
...
@@ -219,8 +197,19 @@ class OrderPage extends StatelessWidget {
SizedBox
(
SizedBox
(
height:
height:
MediaQuery
.
of
(
context
).
size
.
height
*
0.02
),
MediaQuery
.
of
(
context
).
size
.
height
*
0.02
),
listTotalRincian
(
GestureDetector
(
context
,
"Total"
,
totalAmountText
+
",-"
),
onLongPress:
()
{
Navigator
.
pushReplacement
(
context
,
MaterialPageRoute
(
builder:
(
BuildContext
context
)
=>
const
InputBaseUrl
(),
),
);
},
child:
listTotalRincian
(
context
,
"Total"
,
totalAmountText
+
",-"
),
),
],
],
);
);
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment