Skip to content

Commit 2512ee8

Browse files
Roman JaquezRoman Jaquez
authored andcommitted
schedule
1 parent b434fae commit 2512ee8

13 files changed

+513
-20
lines changed

lib/features/schedule/data/models/schedule_session.model.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class ScheduleSessionModel {
55

66
const ScheduleSessionModel({
77
required this.id,
8+
required this.slotIndex,
89
required this.speakers,
910
required this.dateTime,
1011
required this.duration,
@@ -13,6 +14,7 @@ class ScheduleSessionModel {
1314
});
1415

1516
final String id;
17+
final int slotIndex;
1618
final List<SpeakerModel> speakers;
1719
final SessionModel session;
1820
final DateTime dateTime;

lib/features/schedule/data/repositories/schedule_repository.dart

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class ScheduleRepository {
1717
time: DateTime.parse('2023-10-25T10:00:00Z'),
1818
sessions: [
1919
ScheduleSessionModel(
20-
id: '',
20+
id: '',
21+
slotIndex: 0,
2122
speakers: [
2223
SpeakerModel(
2324
name: 'John Smith',
@@ -36,7 +37,8 @@ class ScheduleRepository {
3637
),
3738
),
3839
ScheduleSessionModel(
39-
id: '',
40+
id: '',
41+
slotIndex: 1,
4042
speakers: [
4143
SpeakerModel(
4244
name: 'Jane Smith',
@@ -55,7 +57,8 @@ class ScheduleRepository {
5557
),
5658
),
5759
ScheduleSessionModel(
58-
id: '',
60+
id: '',
61+
slotIndex: 2,
5962
speakers: [
6063
SpeakerModel(
6164
name: 'Maria Jackson',
@@ -75,7 +78,8 @@ class ScheduleRepository {
7578
time: DateTime.parse('2023-10-25T10:30:00Z'),
7679
sessions: [
7780
ScheduleSessionModel(
78-
id: '',
81+
id: '',
82+
slotIndex: 3,
7983
speakers: [
8084
SpeakerModel(
8185
name: 'Michael Bison',
@@ -90,7 +94,8 @@ class ScheduleRepository {
9094
),
9195
),
9296
ScheduleSessionModel(
93-
id: '',
97+
id: '',
98+
slotIndex: 4,
9499
speakers: [
95100
SpeakerModel(
96101
name: 'Luisa Marie',
@@ -106,6 +111,7 @@ class ScheduleRepository {
106111
),
107112
ScheduleSessionModel(
108113
id: '',
114+
slotIndex: 5,
109115
speakers: [
110116
SpeakerModel(
111117
name: 'Carl Rose',
@@ -126,6 +132,7 @@ class ScheduleRepository {
126132
sessions: [
127133
ScheduleSessionModel(
128134
id: '',
135+
slotIndex: 6,
129136
speakers: [
130137
SpeakerModel(
131138
name: 'Paola Lazaro',
@@ -141,6 +148,7 @@ class ScheduleRepository {
141148
),
142149
ScheduleSessionModel(
143150
id: '',
151+
slotIndex: 7,
144152
speakers: [
145153
SpeakerModel(
146154
name: 'Jennifer Aninston',
@@ -156,6 +164,7 @@ class ScheduleRepository {
156164
),
157165
ScheduleSessionModel(
158166
id: '',
167+
slotIndex: 8,
159168
speakers: [
160169
SpeakerModel(
161170
name: 'Peter Blake',
@@ -176,6 +185,7 @@ class ScheduleRepository {
176185
sessions: [
177186
ScheduleSessionModel(
178187
id: '',
188+
slotIndex: 9,
179189
speakers: [
180190
SpeakerModel(
181191
name: 'Peter Blake',
@@ -191,6 +201,7 @@ class ScheduleRepository {
191201
),
192202
ScheduleSessionModel(
193203
id: '',
204+
slotIndex: 10,
194205
speakers: [
195206
SpeakerModel(
196207
name: 'Paola Lazaro',
@@ -206,6 +217,7 @@ class ScheduleRepository {
206217
),
207218
ScheduleSessionModel(
208219
id: '',
220+
slotIndex: 11,
209221
speakers: [
210222
SpeakerModel(
211223
name: 'Peter Blake',
@@ -231,6 +243,7 @@ class ScheduleRepository {
231243
sessions: [
232244
ScheduleSessionModel(
233245
id: '',
246+
slotIndex: 12,
234247
speakers: [
235248
SpeakerModel(
236249
name: 'John Smith',
@@ -250,6 +263,7 @@ class ScheduleRepository {
250263
),
251264
ScheduleSessionModel(
252265
id: '',
266+
slotIndex: 13,
253267
speakers: [
254268
SpeakerModel(
255269
name: 'Jane Smith',
@@ -269,6 +283,7 @@ class ScheduleRepository {
269283
),
270284
ScheduleSessionModel(
271285
id: '',
286+
slotIndex: 14,
272287
speakers: [
273288
SpeakerModel(
274289
name: 'Maria Jackson',
@@ -289,6 +304,7 @@ class ScheduleRepository {
289304
sessions: [
290305
ScheduleSessionModel(
291306
id: '',
307+
slotIndex: 15,
292308
speakers: [
293309
SpeakerModel(
294310
name: 'Michael Bison',
@@ -304,6 +320,7 @@ class ScheduleRepository {
304320
),
305321
ScheduleSessionModel(
306322
id: '',
323+
slotIndex: 16,
307324
speakers: [
308325
SpeakerModel(
309326
name: 'Luisa Marie',
@@ -319,6 +336,7 @@ class ScheduleRepository {
319336
),
320337
ScheduleSessionModel(
321338
id: '',
339+
slotIndex: 17,
322340
speakers: [
323341
SpeakerModel(
324342
name: 'Carl Rose',
@@ -339,6 +357,7 @@ class ScheduleRepository {
339357
sessions: [
340358
ScheduleSessionModel(
341359
id: '',
360+
slotIndex: 18,
342361
speakers: [
343362
SpeakerModel(
344363
name: 'Paola Lazaro',
@@ -354,6 +373,7 @@ class ScheduleRepository {
354373
),
355374
ScheduleSessionModel(
356375
id: '',
376+
slotIndex: 19,
357377
speakers: [
358378
SpeakerModel(
359379
name: 'Jennifer Aninston',
@@ -369,6 +389,7 @@ class ScheduleRepository {
369389
),
370390
ScheduleSessionModel(
371391
id: '',
392+
slotIndex: 20,
372393
speakers: [
373394
SpeakerModel(
374395
name: 'Peter Blake',
@@ -389,6 +410,7 @@ class ScheduleRepository {
389410
sessions: [
390411
ScheduleSessionModel(
391412
id: '',
413+
slotIndex: 21,
392414
speakers: [
393415
SpeakerModel(
394416
name: 'Peter Blake',
@@ -404,6 +426,7 @@ class ScheduleRepository {
404426
),
405427
ScheduleSessionModel(
406428
id: '',
429+
slotIndex: 22,
407430
speakers: [
408431
SpeakerModel(
409432
name: 'Raj Kutrapali',
@@ -419,6 +442,7 @@ class ScheduleRepository {
419442
),
420443
ScheduleSessionModel(
421444
id: '',
445+
slotIndex: 23,
422446
speakers: [
423447
SpeakerModel(
424448
name: 'Peter Blake',

lib/features/schedule/presentation/pages/schedule_page.dart

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,57 @@ class SchedulePage extends ConsumerWidget {
7070
ScheduleDateSelector(
7171
eventDates: scheduleData.map((s) => s.date).toList(),
7272
),
73+
// Container(
74+
// margin: FlutterConfLatamStyles.mediumMargin.copyWith(
75+
// right: 0,
76+
// ),
77+
// child: Row(
78+
// children: [
79+
// Expanded(
80+
// flex: uiConfig.timeFlexValue,
81+
// child: SizedBox.shrink()
82+
// ),
83+
// Expanded(
84+
// flex: uiConfig.contentFlexValue,
85+
// child: Row(
86+
// children: [
87+
// Expanded(
88+
// child: Container(
89+
// decoration: BoxDecoration(
90+
// color: Color.fromARGB(255, 203, 156, 0),
91+
// ),
92+
// margin: FlutterConfLatamStyles.mediumMargin.copyWith(
93+
// bottom: 0,
94+
// right: FlutterConfLatamStyles.mediumMargin.right / 3,
95+
// ),
96+
// padding: FlutterConfLatamStyles.mediumPadding,
97+
// child: Text('Track 1', textAlign: TextAlign.center, style: FlutterConfLatamStyles.h6.copyWith(
98+
// color: Colors.white
99+
// )),
100+
// ),
101+
// ),
102+
// Expanded(
103+
// child: Container(
104+
// decoration: BoxDecoration(
105+
106+
// color: Color.fromARGB(255, 203, 156, 0),
107+
// ),
108+
// margin: FlutterConfLatamStyles.mediumMargin.copyWith(
109+
// bottom: 0,
110+
// left: FlutterConfLatamStyles.mediumMargin.left / 3,
111+
// ),
112+
// padding: FlutterConfLatamStyles.mediumPadding,
113+
// child: Text('Track 2', textAlign: TextAlign.center, style: FlutterConfLatamStyles.h6.copyWith(
114+
// color: Colors.white
115+
// )),
116+
// ),
117+
// )
118+
// ],
119+
// )
120+
// )
121+
// ],
122+
// ),
123+
// ),
73124
ScheduleDayBlock(
74125
key: ValueKey(scheduleSelectedDate),
75126
scheduleDay: scheduleDayForSelection,

lib/features/schedule/presentation/responsiveness/schedule_content_responsive_config.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ class ScheduleContentResponsiveConfig {
8181
headerDirection: Axis.horizontal,
8282
headerIconSize: 80,
8383
pageVerticalGap: FlutterConfLatamStyles.mediumVGap,
84-
tabDayLabelStyle: FlutterConfLatamStyles.h1,
85-
tabDateLabelStyle: FlutterConfLatamStyles.h6,
84+
tabDayLabelStyle: FlutterConfLatamStyles.h5,
85+
tabDateLabelStyle: FlutterConfLatamStyles.h7,
8686
timeContentOrientation: Axis.horizontal,
8787
timeFlexValue: 1,
8888
contentFlexValue: 4,
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import 'package:flutter/material.dart';
2+
3+
class ScheduleDay1LargeLayout extends StatelessWidget {
4+
const ScheduleDay1LargeLayout({super.key});
5+
6+
@override
7+
Widget build(BuildContext context) {
8+
return Container();
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import 'package:flutter/material.dart';
2+
3+
class ScheduleDay1MobileTabletLayout extends StatelessWidget {
4+
const ScheduleDay1MobileTabletLayout({super.key});
5+
6+
@override
7+
Widget build(BuildContext context) {
8+
return Container();
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import 'package:flutter/material.dart';
2+
3+
class ScheduleDay2LargeLayout extends StatelessWidget {
4+
const ScheduleDay2LargeLayout({super.key});
5+
6+
@override
7+
Widget build(BuildContext context) {
8+
return Container();
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import 'package:flutter/material.dart';
2+
3+
class ScheduleDay2MobileTabletLayout extends StatelessWidget {
4+
const ScheduleDay2MobileTabletLayout({super.key});
5+
6+
@override
7+
Widget build(BuildContext context) {
8+
return Container();
9+
}
10+
}

0 commit comments

Comments
 (0)