refactor: Enable more strict lints
This commit is contained in:
parent
f797bce8d0
commit
28af7bb0c7
65 changed files with 170 additions and 146 deletions
|
|
@ -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(() {});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ class SettingsStyleView extends StatelessWidget {
|
|||
type: EventTypes.RoomMember,
|
||||
senderId: client.userID!,
|
||||
originServerTs: DateTime.now(),
|
||||
stateKey: client.userID!,
|
||||
stateKey: client.userID,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue