refactor: Enable more strict lints

This commit is contained in:
Christian Kußowski 2026-02-24 10:04:40 +01:00
commit 28af7bb0c7
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
65 changed files with 170 additions and 146 deletions

View file

@ -26,7 +26,7 @@ class SettingsStyleController extends State<SettingsStyle> {
ThemeController.of(context).setPrimaryColor(color);
}
void setWallpaper() async {
Future<void> setWallpaper() async {
final client = Matrix.of(context).client;
final picked = await selectFiles(context, type: FileType.image);
final pickedFile = picked.firstOrNull;
@ -53,7 +53,7 @@ class SettingsStyleController extends State<SettingsStyle> {
double? _wallpaperOpacity;
void saveWallpaperOpacity(double opacity) async {
Future<void> saveWallpaperOpacity(double opacity) async {
final client = Matrix.of(context).client;
final result = await showFutureLoadingDialog(
context: context,
@ -80,7 +80,7 @@ class SettingsStyleController extends State<SettingsStyle> {
0.5;
double? _wallpaperBlur;
void saveWallpaperBlur(double blur) async {
Future<void> saveWallpaperBlur(double blur) async {
final client = Matrix.of(context).client;
final result = await showFutureLoadingDialog(
context: context,
@ -153,7 +153,7 @@ class SettingsStyleController extends State<SettingsStyle> {
setState(() {});
}
void changeFontSizeFactor(double d) async {
Future<void> changeFontSizeFactor(double d) async {
await AppSettings.fontSizeFactor.setItem(d);
setState(() {});
}

View file

@ -201,7 +201,7 @@ class SettingsStyleView extends StatelessWidget {
type: EventTypes.RoomMember,
senderId: client.userID!,
originServerTs: DateTime.now(),
stateKey: client.userID!,
stateKey: client.userID,
),
),
Padding(