diff --git a/lib/view/pages/more/holidays/holidays.dart b/lib/view/pages/more/holidays/holidays.dart index da45f71..2c4fb4e 100644 --- a/lib/view/pages/more/holidays/holidays.dart +++ b/lib/view/pages/more/holidays/holidays.dart @@ -1,5 +1,6 @@ +import 'dart:core'; + import 'package:flutter/material.dart'; -import 'package:flutter_native_splash/cli_commands.dart'; import 'package:jiffy/jiffy.dart'; import 'package:provider/provider.dart'; @@ -20,6 +21,12 @@ class Holidays extends StatefulWidget { State<Holidays> createState() => _HolidaysState(); } +extension StringExtension on String { + String capitalize() { + return "${this[0].toUpperCase()}${substring(1).toLowerCase()}"; + } +} + class _HolidaysState extends State<Holidays> { late SettingsProvider settings = Provider.of<SettingsProvider>(context, listen: false); late bool showPastEvents = settings.val().holidaysSettings.showPastEvents; diff --git a/pubspec.yaml b/pubspec.yaml index 37b8775..d252c91 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.0.4+28 +version: 0.0.4+29 environment: sdk: '>3.0.0' @@ -56,7 +56,7 @@ dependencies: git: url: https://github.com/provokateurin/nextcloud-neon path: packages/nextcloud - ref: 1d2f4703046f3bb4e5566758ed1ae5499c9006aa + ref: 8ed58773dfe7b7c4106b38457561014dbebf580a flutter_launcher_icons: ^0.13.1 pretty_json: ^2.0.0 cached_network_image: ^3.2.3