Skip to content

Commit

Permalink
UI Improvements and Code Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkoerber committed Oct 8, 2024
1 parent a33a8d6 commit 9e3fce8
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 20 deletions.
10 changes: 5 additions & 5 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ PODS:
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- sqflite (0.0.3):
- sqflite_darwin (0.0.4):
- Flutter
- FlutterMacOS
- "sqlite3 (3.46.1+1)":
Expand Down Expand Up @@ -163,7 +163,7 @@ DEPENDENCIES:
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
- quick_actions_ios (from `.symlinks/plugins/quick_actions_ios/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite (from `.symlinks/plugins/sqflite/darwin`)
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
- sqlite3_flutter_libs (from `.symlinks/plugins/sqlite3_flutter_libs/ios`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/darwin`)
Expand Down Expand Up @@ -223,8 +223,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/quick_actions_ios/ios"
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
sqflite:
:path: ".symlinks/plugins/sqflite/darwin"
sqflite_darwin:
:path: ".symlinks/plugins/sqflite_darwin/darwin"
sqlite3_flutter_libs:
:path: ".symlinks/plugins/sqlite3_flutter_libs/ios"
url_launcher_ios:
Expand Down Expand Up @@ -267,7 +267,7 @@ SPEC CHECKSUMS:
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
quick_actions_ios: 56f3cbaa71e94f212838d1f9fe354bd0734779bf
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
sqflite_darwin: a553b1fd6fe66f53bbb0fe5b4f5bab93f08d7a13
sqlite3: 0bb0e6389d824e40296f531b858a2a0b71c0d2fb
sqlite3_flutter_libs: c00457ebd31e59fa6bb830380ddba24d44fbcd3b
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
Expand Down
7 changes: 3 additions & 4 deletions lib/calendarComponent/viewModels/calendar_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ class CalendarViewModel {

final filteredEvents = events.value
?.where(
(element) => element.startDate.isAfter(
DateTime.now(),
),
(element) =>
element.startDate.isAfter(DateTime.now()) &&
(element.isVisible ?? true),
)
.toList() ??
[];
Expand Down Expand Up @@ -156,7 +156,6 @@ class CalendarViewModel {
void resetPreferences() {
_resetEventColors();
_resetVisibility();
fetch(true);
}

void _resetEventColors() {
Expand Down
5 changes: 4 additions & 1 deletion lib/calendarComponent/views/custom_event_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ class CustomEventView extends ConsumerWidget {
title,
style: Theme.of(context).textTheme.titleMedium,
),
child,
Padding(
padding: EdgeInsets.symmetric(vertical: context.halfPadding),
child: child,
),
],
),
);
Expand Down
44 changes: 34 additions & 10 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1382,10 +1382,18 @@ packages:
dependency: transitive
description:
name: sqflite
sha256: ff5a2436ef8ebdfda748fbfe957f9981524cb5ff11e7bafa8c42771840e8a788
sha256: "79a297dc3cc137e758c6a4baf83342b039e5a6d2436fcdf3f96a00adaaf2ad62"
url: "https://pub.dev"
source: hosted
version: "2.3.3+2"
version: "2.4.0"
sqflite_android:
dependency: transitive
description:
name: sqflite_android
sha256: "78f489aab276260cdd26676d2169446c7ecd3484bbd5fead4ca14f3ed4dd9ee3"
url: "https://pub.dev"
source: hosted
version: "2.4.0"
sqflite_common:
dependency: transitive
description:
Expand All @@ -1394,6 +1402,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.5.4+5"
sqflite_darwin:
dependency: transitive
description:
name: sqflite_darwin
sha256: "769733dddf94622d5541c73e4ddc6aa7b252d865285914b6fcd54a63c4b4f027"
url: "https://pub.dev"
source: hosted
version: "2.4.1-1"
sqflite_platform_interface:
dependency: transitive
description:
name: sqflite_platform_interface
sha256: b62ab81e1284341783222aefbbb44f984ebf4663d672ae10408c9a8ddab4bfb6
url: "https://pub.dev"
source: hosted
version: "2.4.0-0"
sqlite3:
dependency: "direct main"
description:
Expand Down Expand Up @@ -1462,34 +1486,34 @@ packages:
dependency: "direct main"
description:
name: syncfusion_flutter_calendar
sha256: "17bc2c2e95737336c1bf54e27f6d006f11e3384dd556d13ee3a9a324416ea1e4"
sha256: c2105449ffb46a9a79e5b622ceb8a78e2937c88e69747469244051803fba6b52
url: "https://pub.dev"
source: hosted
version: "27.1.51"
version: "27.1.52"
syncfusion_flutter_charts:
dependency: "direct main"
description:
name: syncfusion_flutter_charts
sha256: f1463e08decdae2fff4c67f0cd86bcd64050bc49ae50c2db18acd99fdc04da18
sha256: "4e89e0893297780d8e06be0c482b9b0a23ecf54c3d64e6e40ff06cf30952bce6"
url: "https://pub.dev"
source: hosted
version: "27.1.51"
version: "27.1.52"
syncfusion_flutter_core:
dependency: "direct main"
description:
name: syncfusion_flutter_core
sha256: "95a53df168fd4473bbf23c481db656db97434d18d60f59fbeec97a754794f7b5"
sha256: "7130fc3259247946b59fe9b76ee89500c775c3f7e5c1d0826f3105e1dd0bebf6"
url: "https://pub.dev"
source: hosted
version: "27.1.51"
version: "27.1.52"
syncfusion_flutter_datepicker:
dependency: "direct main"
description:
name: syncfusion_flutter_datepicker
sha256: dcb9da082d2e39c84415a8323287a0714ffd349d5cf3bed93af1ad0b30b7dfd9
sha256: "61efc09e962d7b7cc3c7d33a2e44ec027112403af49590d5cc1025a255cc34fa"
url: "https://pub.dev"
source: hosted
version: "27.1.51"
version: "27.1.52"
synchronized:
dependency: transitive
description:
Expand Down

0 comments on commit 9e3fce8

Please sign in to comment.