Updated flutter and dependencies

This commit is contained in:
Elias Müller 2023-10-18 20:47:21 +02:00
parent 32211baee0
commit 4475d50524
2 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,6 @@
import 'dart:core';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_native_splash/cli_commands.dart';
import 'package:jiffy/jiffy.dart'; import 'package:jiffy/jiffy.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
@ -20,6 +21,12 @@ class Holidays extends StatefulWidget {
State<Holidays> createState() => _HolidaysState(); State<Holidays> createState() => _HolidaysState();
} }
extension StringExtension on String {
String capitalize() {
return "${this[0].toUpperCase()}${substring(1).toLowerCase()}";
}
}
class _HolidaysState extends State<Holidays> { class _HolidaysState extends State<Holidays> {
late SettingsProvider settings = Provider.of<SettingsProvider>(context, listen: false); late SettingsProvider settings = Provider.of<SettingsProvider>(context, listen: false);
late bool showPastEvents = settings.val().holidaysSettings.showPastEvents; late bool showPastEvents = settings.val().holidaysSettings.showPastEvents;

View File

@ -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 # 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 # 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. # 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: environment:
sdk: '>3.0.0' sdk: '>3.0.0'
@ -56,7 +56,7 @@ dependencies:
git: git:
url: https://github.com/provokateurin/nextcloud-neon url: https://github.com/provokateurin/nextcloud-neon
path: packages/nextcloud path: packages/nextcloud
ref: 1d2f4703046f3bb4e5566758ed1ae5499c9006aa ref: 8ed58773dfe7b7c4106b38457561014dbebf580a
flutter_launcher_icons: ^0.13.1 flutter_launcher_icons: ^0.13.1
pretty_json: ^2.0.0 pretty_json: ^2.0.0
cached_network_image: ^3.2.3 cached_network_image: ^3.2.3