@@ -7,7 +7,6 @@ import 'ui_permissions_screen.dart';
7
7
import 'widgets/call_actions.dart' ;
8
8
import 'widgets/call_features.dart' ;
9
9
import 'widgets/call_status.dart' ;
10
- import 'widgets/permissions_block.dart' ;
11
10
import 'widgets/twilio_log.dart' ;
12
11
13
12
typedef PerformCall = Future <void > Function (String clientIdentifier);
@@ -100,9 +99,9 @@ class _UICallScreenState extends State<UICallScreen> {
100
99
),
101
100
),
102
101
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),
106
105
onTap: () {
107
106
Navigator .push (
108
107
context,
@@ -129,7 +128,7 @@ class _UICallScreenState extends State<UICallScreen> {
129
128
}
130
129
131
130
class _RingSound extends StatefulWidget {
132
- const _RingSound ({super . key});
131
+ const _RingSound ({Key ? key}) : super (key : key );
133
132
134
133
@override
135
134
State <_RingSound > createState () => _RingSoundState ();
@@ -165,6 +164,7 @@ class _RingSoundState extends State<_RingSound> {
165
164
onPressed: () async {
166
165
final url = _controller.text.isEmpty ? null : _controller.text;
167
166
await _tv.updateSound (SoundName .Incoming , url);
167
+ // ignore: use_build_context_synchronously
168
168
ScaffoldMessenger .of (context).showSnackBar (
169
169
SnackBar (content: Text ("Updated incoming sound to ${_controller .text }" )),
170
170
);
@@ -175,8 +175,9 @@ class _RingSoundState extends State<_RingSound> {
175
175
ElevatedButton (
176
176
onPressed: () async {
177
177
await _tv.updateSound (SoundName .Incoming , null );
178
+ // ignore: use_build_context_synchronously
178
179
ScaffoldMessenger .of (context).showSnackBar (
179
- SnackBar (content: Text ("Reset incoming sound" )),
180
+ const SnackBar (content: Text ("Reset incoming sound" )),
180
181
);
181
182
},
182
183
child: const Text ("Reset" ),
0 commit comments