Skip to content

Commit

Permalink
chore: fix analyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmo314 committed Apr 29, 2024
1 parent 815b231 commit b8ada76
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/screens/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:provider/provider.dart';
import 'package:wakelock/wakelock.dart';
import 'package:rtchat/audio_channel.dart';
import 'package:rtchat/components/activity_feed_panel.dart';
import 'package:rtchat/components/auth/twitch.dart';
Expand All @@ -25,6 +24,7 @@ import 'package:rtchat/models/tts.dart';
import 'package:rtchat/models/user.dart';
import 'package:rtchat/notifications_plugin.dart';
import 'package:rtchat/tts_plugin.dart';
import 'package:wakelock/wakelock.dart';

class ResizableWidget extends StatefulWidget {
final bool resizable;
Expand Down Expand Up @@ -255,8 +255,9 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
: Icons.voice_over_off),
tooltip: AppLocalizations.of(context)!.textToSpeech,
onPressed: () async {
ttsModel.enabled = !ttsModel.enabled;
if (false) {
if (!kDebugMode) {
ttsModel.enabled = !ttsModel.enabled;
} else {
if (!ttsModel.enabled) {
updateChannelSubscription("");
await TextToSpeechPlugin.speak(
Expand Down

0 comments on commit b8ada76

Please sign in to comment.