Skip to content

Commit

Permalink
more calendar data displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassth committed Oct 6, 2022
1 parent f7e30e3 commit 0b9bc98
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions example/lib/presentation/pages/calendars.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,20 @@ class _CalendarsPageState extends State<CalendarsPage> {
child: Row(
children: [
Expanded(
flex: 1,
child: Text(
_calendars[index].name!,
style: Theme.of(context).textTheme.subtitle1,
),
),
flex: 1,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"${_calendars[index].id}: ${_calendars[index].name!}",
style:
Theme.of(context).textTheme.subtitle1,
),
Text(
"Account: ${_calendars[index].accountName!}"),
Text(
"type: ${_calendars[index].accountType}"),
])),
Container(
width: 15,
height: 15,
Expand All @@ -84,13 +92,14 @@ class _CalendarsPageState extends State<CalendarsPage> {
color: Color(_calendars[index].color!)),
),
SizedBox(width: 10),
Container(
margin: const EdgeInsets.fromLTRB(0, 0, 5.0, 0),
padding: const EdgeInsets.all(3.0),
decoration: BoxDecoration(
border: Border.all(color: Colors.blueAccent)),
child: Text('Default'),
),
if (_calendars[index].isDefault!)
Container(
margin: const EdgeInsets.fromLTRB(0, 0, 5.0, 0),
padding: const EdgeInsets.all(3.0),
decoration: BoxDecoration(
border: Border.all(color: Colors.blueAccent)),
child: Text('Default'),
),
Icon(_calendars[index].isReadOnly == true
? Icons.lock
: Icons.lock_open)
Expand Down

0 comments on commit 0b9bc98

Please sign in to comment.