-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show Opening Hours for Cafeterias (#126)
- Loading branch information
1 parent
e4482b0
commit 39857ff
Showing
11 changed files
with
298 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class InfoRow extends StatelessWidget { | ||
const InfoRow({super.key, required this.title, required this.info}); | ||
|
||
final String title; | ||
final String info; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Row(children: [ | ||
Expanded( | ||
child: | ||
Text(title, style: const TextStyle(fontWeight: FontWeight.w500))), | ||
Expanded(child: Text(info)) | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
part 'opening_hours.g.dart'; | ||
|
||
@JsonSerializable() | ||
class OpeningHours { | ||
final OpeningHour? mon; | ||
final OpeningHour? tue; | ||
final OpeningHour? wed; | ||
final OpeningHour? thu; | ||
final OpeningHour? fri; | ||
|
||
OpeningHours({this.mon, this.tue, this.wed, this.thu, this.fri}); | ||
|
||
factory OpeningHours.fromJson(Map<String, dynamic> json) => | ||
_$OpeningHoursFromJson(json); | ||
|
||
Map<String, dynamic> toJson() => _$OpeningHoursToJson(this); | ||
} | ||
|
||
@JsonSerializable() | ||
class OpeningHour { | ||
final String start; | ||
final String end; | ||
|
||
OpeningHour({required this.start, required this.end}); | ||
|
||
factory OpeningHour.fromJson(Map<String, dynamic> json) => | ||
_$OpeningHourFromJson(json); | ||
|
||
Map<String, dynamic> toJson() => _$OpeningHourToJson(this); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.