Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mobile Computing Group 5
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Hannes Raschke
Mobile Computing Group 5
Commits
910cf1a6
Commit
910cf1a6
authored
2 years ago
by
MichelleKehl
Browse files
Options
Downloads
Patches
Plain Diff
changes
parent
cf0c5b57
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
trackeroo/lib/frontend/views/details_view.dart
+71
-8
71 additions, 8 deletions
trackeroo/lib/frontend/views/details_view.dart
with
71 additions
and
8 deletions
trackeroo/lib/frontend/views/details_view.dart
+
71
−
8
View file @
910cf1a6
import
'package:flutter/material.dart'
;
import
'package:fl_chart/fl_chart.dart'
;
import
'package:trackeroo/frontend/utils/transaction_listtile.dart'
;
import
'package:trackeroo/frontend/views/onboarding_view.dart'
;
import
'package:trackeroo/logic/models/transaction.dart'
;
enum
Timespan
{
daily
,
weekly
,
monthly
,
yearly
,
all
}
List
<
String
>
items
=
[
'C1'
,
'C2'
,
'C3'
,
'C4'
];
String
?
selectedValue
;
class
DetailsView
extends
StatefulWidget
{
const
DetailsView
({
super
.
key
});
...
...
@@ -20,22 +29,29 @@ class _DetailsViewState extends State<DetailsView> {
Transaction
trn
=
Transaction
(
title:
"Bus Ticket VVS"
,
amount:
-
5.32
,
categoryId:
'food_and_groceries'
,
dueDate:
DateTime
.
now
());
Transaction
trp
=
Transaction
(
title:
"Gehalt"
,
amount:
1300
,
categoryId:
'leisure_and_entertainment'
,
dueDate:
DateTime
.
now
());
Timespan
timespanView
=
Timespan
.
monthly
;
@override
Widget
build
(
BuildContext
context
)
{
return
SingleChildScrollView
(
/* backgroundColor: Colors.blueGrey[900],*/
padding:
EdgeInsets
.
all
(
16.0
),
padding:
const
EdgeInsets
.
all
(
16.0
),
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
const
Text
(
'Datails chart'
,
style:
TextStyle
(
fontSize:
14.0
,
fontWeight:
FontWeight
.
bold
),
const
Row
(
children:
[
Text
(
'Datails chart'
,
style:
TextStyle
(
fontSize:
14.0
,
fontWeight:
FontWeight
.
bold
),
),
]
),
const
SizedBox
(
height:
20.0
),
Center
(
...
...
@@ -123,6 +139,53 @@ class _DetailsViewState extends State<DetailsView> {
),
)
),
const
SizedBox
(
height:
10.0
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
FilterChip
(
onSelected:
(
value
)
=
>
setState
(()
{
timespanView
=
Timespan
.
daily
;
}),
label:
const
Text
(
'Daily'
),
selected:
timespanView
==
Timespan
.
daily
,
showCheckmark:
false
),
FilterChip
(
onSelected:
(
value
)
=
>
setState
(()
{
timespanView
=
Timespan
.
weekly
;
}),
label:
const
Text
(
'Weekly'
),
selected:
timespanView
==
Timespan
.
weekly
,
showCheckmark:
false
),
FilterChip
(
onSelected:
(
value
)
=
>
setState
(()
{
timespanView
=
Timespan
.
monthly
;
}),
label:
const
Text
(
'Montly'
),
selected:
timespanView
==
Timespan
.
monthly
,
showCheckmark:
false
),
FilterChip
(
onSelected:
(
value
)
=
>
setState
(()
{
timespanView
=
Timespan
.
yearly
;
}),
label:
const
Text
(
'Yearly'
),
selected:
timespanView
==
Timespan
.
yearly
,
showCheckmark:
false
),
FilterChip
(
onSelected:
(
value
)
=
>
setState
(()
{
timespanView
=
Timespan
.
all
;
}),
label:
const
Text
(
'All'
),
selected:
timespanView
==
Timespan
.
all
,
showCheckmark:
false
)
],
),
const
SizedBox
(
height:
20.0
),
const
Text
(
'Transactions'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment