refactor: Enable more strict lints
This commit is contained in:
parent
f797bce8d0
commit
28af7bb0c7
65 changed files with 170 additions and 146 deletions
|
|
@ -124,7 +124,7 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
|
|||
}
|
||||
}
|
||||
|
||||
void _onButtonTap() async {
|
||||
Future<void> _onButtonTap() async {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
ScaffoldMessenger.of(matrix.context).clearMaterialBanners();
|
||||
});
|
||||
|
|
@ -216,7 +216,7 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
|
|||
);
|
||||
}
|
||||
|
||||
void _toggleSpeed() async {
|
||||
Future<void> _toggleSpeed() async {
|
||||
final audioPlayer = matrix.audioPlayer;
|
||||
if (audioPlayer == null) return;
|
||||
switch (audioPlayer.speed) {
|
||||
|
|
@ -459,7 +459,7 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
|
|||
height: 20,
|
||||
child: Center(
|
||||
child: Text(
|
||||
'${audioPlayer?.speed.toString()}x',
|
||||
'${audioPlayer?.speed}x',
|
||||
style: TextStyle(
|
||||
color: widget.color,
|
||||
fontSize: 9,
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class MessageContent extends StatelessWidget {
|
|||
required this.selected,
|
||||
});
|
||||
|
||||
void _verifyOrRequestKey(BuildContext context) async {
|
||||
Future<void> _verifyOrRequestKey(BuildContext context) async {
|
||||
final l10n = L10n.of(context);
|
||||
if (event.content['can_request_session'] != true) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue