@@ -7,7 +7,6 @@ import 'ui_permissions_screen.dart';
77import 'widgets/call_actions.dart' ;
88import 'widgets/call_features.dart' ;
99import 'widgets/call_status.dart' ;
10- import 'widgets/permissions_block.dart' ;
1110import 'widgets/twilio_log.dart' ;
1211
1312typedef PerformCall = Future <void > Function (String clientIdentifier);
@@ -100,9 +99,9 @@ class _UICallScreenState extends State<UICallScreen> {
10099 ),
101100 ),
102101 ListTile (
103- title: Text ("Permissions" ),
104- subtitle: Text ("Please allow all permissions to use the app" ),
105- trailing: Icon (Icons .arrow_forward_ios),
102+ title: const Text ("Permissions" ),
103+ subtitle: const Text ("Please allow all permissions to use the app" ),
104+ trailing: const Icon (Icons .arrow_forward_ios),
106105 onTap: () {
107106 Navigator .push (
108107 context,
@@ -129,7 +128,7 @@ class _UICallScreenState extends State<UICallScreen> {
129128}
130129
131130class _RingSound extends StatefulWidget {
132- const _RingSound ({super . key});
131+ const _RingSound ({Key ? key}) : super (key : key );
133132
134133 @override
135134 State <_RingSound > createState () => _RingSoundState ();
@@ -165,6 +164,7 @@ class _RingSoundState extends State<_RingSound> {
165164 onPressed: () async {
166165 final url = _controller.text.isEmpty ? null : _controller.text;
167166 await _tv.updateSound (SoundName .Incoming , url);
167+ // ignore: use_build_context_synchronously
168168 ScaffoldMessenger .of (context).showSnackBar (
169169 SnackBar (content: Text ("Updated incoming sound to ${_controller .text }" )),
170170 );
@@ -175,8 +175,9 @@ class _RingSoundState extends State<_RingSound> {
175175 ElevatedButton (
176176 onPressed: () async {
177177 await _tv.updateSound (SoundName .Incoming , null );
178+ // ignore: use_build_context_synchronously
178179 ScaffoldMessenger .of (context).showSnackBar (
179- SnackBar (content: Text ("Reset incoming sound" )),
180+ const SnackBar (content: Text ("Reset incoming sound" )),
180181 );
181182 },
182183 child: const Text ("Reset" ),
0 commit comments