Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
Tour Travel Agency AGR
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
Tour Travel Agency AGR
Commits
0249322d
Commit
0249322d
authored
May 26, 2023
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widget transactionlist dipisah jadi komponen
parent
23f2021e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
120 additions
and
0 deletions
+120
-0
transaction_list.dart
lib/helper/components_widget/transaction_list.dart
+120
-0
No files found.
lib/helper/components_widget/transaction_list.dart
0 → 100644
View file @
0249322d
import
'package:flutter/material.dart'
;
import
'package:tour_travel_agr/resource/assets.dart'
;
import
'package:tour_travel_agr/resource/colors.dart'
;
import
'package:tour_travel_agr/resource/font.dart'
;
import
'package:tour_travel_agr/resource/size.dart'
;
import
'package:tour_travel_agr/resource/style.dart'
;
class
ListTransaction
extends
StatelessWidget
{
const
ListTransaction
({
super
.
key
,
required
this
.
date
,
required
this
.
title
,
required
this
.
subtitle
,
});
final
String
date
;
final
String
title
;
final
String
subtitle
;
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
only
(
bottom:
12
,
),
padding:
EdgeInsets
.
all
(
AppPadding
.
p12
,
),
height:
102
,
width:
double
.
infinity
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
12
,
),
border:
Border
.
all
(
width:
0.5
,
color:
Colors
.
grey
.
withOpacity
(
0.25
,
),
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
Colors
.
grey
.
withOpacity
(
0.3
),
blurRadius:
2
,
offset:
const
Offset
(
5
,
5
),
),
],
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Row
(
children:
[
const
Spacer
(),
Text
(
date
,
style:
getRegularStyle
(
color:
ColorManager
.
grey
,
fontFamily:
FontConstants
.
openSans
,
fontSize:
FontSize
.
s12
,
),
)
],
),
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
Container
(
width:
40
,
height:
40
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
100
,
),
color:
ColorManager
.
pink
,
),
child:
Center
(
child:
Image
(
width:
20
,
height:
20
,
image:
AssetImage
(
Assets
.
transactionIcon
,
),
),
),
),
Container
(
margin:
EdgeInsets
.
only
(
left:
AppMargin
.
m16
,
),
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
title
,
style:
getBoldStyle
(
color:
Colors
.
black
,
fontFamily:
FontConstants
.
mulish
,
fontSize:
18
,
),
),
Text
(
subtitle
,
style:
getSemiBoldStyle
(
color:
ColorManager
.
primary
,
fontFamily:
FontConstants
.
openSans
,
),
),
],
),
)
],
)
],
),
);
}
}
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