Skip to content

Commit 9807b30

Browse files
committed
format dogfooding
1 parent 21b1dc4 commit 9807b30

19 files changed

+181
-172
lines changed

dogfooding/lib/app/firebase_messaging_handler.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Future<void> firebaseMessagingBackgroundHandler(RemoteMessage message) async {
2626
if (credentials == null) return;
2727

2828
final tokenResponse = await locator.get<TokenService>().loadToken(
29-
userId: credentials.userInfo.id,
30-
environment: prefs.environment,
31-
);
29+
userId: credentials.userInfo.id,
30+
environment: prefs.environment,
31+
);
3232

3333
// Initialise the video client.
3434
final streamVideo = AppInjector.registerStreamVideo(

dogfooding/lib/app/user_auth_controller.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class UserAuthController extends ChangeNotifier {
2727
UserAuthController({
2828
required AppPreferences prefs,
2929
required TokenService tokenService,
30-
}) : _prefs = prefs,
31-
_tokenService = tokenService;
30+
}) : _prefs = prefs,
31+
_tokenService = tokenService;
3232

3333
final AppPreferences _prefs;
3434
final TokenService _tokenService;

dogfooding/lib/core/repos/app_preferences.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class AppPreferences {
2323

2424
String? get apiKey => _prefs.getString(_kApiKeyPref);
2525
Environment get environment => Environment.fromSubdomain(
26-
_prefs.getString(_kEnvironemntPref) ?? Environment.pronto.name,
27-
);
26+
_prefs.getString(_kEnvironemntPref) ?? Environment.pronto.name,
27+
);
2828

2929
Future<bool> setUserCredentials(UserCredentials? credentials) {
3030
final jsonString = jsonEncode(credentials?.toJson());

dogfooding/lib/di/injector.dart

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ class AppInjector {
9797
initialToken: tokenResponse.token,
9898
tokenLoader: switch (user.type) {
9999
UserType.authenticated => (String userId) {
100-
final tokenService = locator<TokenService>();
101-
return tokenService
102-
.loadToken(userId: userId, environment: environment)
103-
.then((response) => response.token);
104-
},
100+
final tokenService = locator<TokenService>();
101+
return tokenService
102+
.loadToken(userId: userId, environment: environment)
103+
.then((response) => response.token);
104+
},
105105
_ => null,
106106
},
107107
),
@@ -167,8 +167,9 @@ StreamVideo _initStreamVideo(
167167
name: 'flutter-firebase',
168168
),
169169
pushConfiguration: const StreamVideoPushConfiguration(
170-
ios: IOSPushConfiguration(iconName: 'IconMask'),
171-
android: AndroidPushConfiguration(defaultAvatar: 'assets/logo.png')),
170+
ios: IOSPushConfiguration(iconName: 'IconMask'),
171+
android: AndroidPushConfiguration(defaultAvatar: 'assets/logo.png'),
172+
),
172173
registerApnDeviceToken: true,
173174
),
174175
);

dogfooding/lib/router/routes.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ class CallRoute extends GoRouteData with $CallRoute {
7777
Call call,
7878
CallConnectOptions? connectOptions,
7979
StreamVideoEffectsManager? effectsManager,
80-
}) $extra;
80+
})
81+
$extra;
8182

8283
@override
8384
Widget build(BuildContext context, GoRouterState state) {

dogfooding/lib/router/routes.g.dart

Lines changed: 40 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dogfooding/lib/screens/call_screen.dart

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ class _CallScreenState extends State<CallScreen> {
139139
layoutMode: _currentLayoutMode,
140140
pictureInPictureConfiguration:
141141
const PictureInPictureConfiguration(
142-
enablePictureInPicture: true,
143-
),
142+
enablePictureInPicture: true,
143+
),
144144
callParticipantsWidgetBuilder: (context, call) {
145145
return Stack(
146146
children: [
@@ -223,8 +223,8 @@ class _CallScreenState extends State<CallScreen> {
223223
selector: (state) => state.localParticipant != null,
224224
builder: (context, hasLocalParticipant) =>
225225
hasLocalParticipant
226-
? FlipCameraOption(call: call)
227-
: const SizedBox.shrink(),
226+
? FlipCameraOption(call: call)
227+
: const SizedBox.shrink(),
228228
),
229229
],
230230
),
@@ -258,8 +258,8 @@ class _CallScreenState extends State<CallScreen> {
258258
desktopScreenSelectorBuilder:
259259
// ignore: avoid_redundant_argument_values
260260
_useCustomDesktopScreenShareOption
261-
? _customDesktopScreenShareSelector
262-
: null,
261+
? _customDesktopScreenShareSelector
262+
: null,
263263
),
264264
ToggleMicrophoneOption(
265265
call: call,
@@ -409,13 +409,13 @@ Future<DesktopCapturerSource?> _customDesktopScreenShareSelector(
409409
builder:
410410
(BuildContext context, ScreenSelectorState value, Widget? child) =>
411411
Padding(
412-
padding: const EdgeInsets.symmetric(horizontal: 16),
413-
child: ThumbnailGrid(
414-
sources: value.sources.values.toList(),
415-
selectedSource: value.selectedSource,
416-
onSelectSource: (source) => Navigator.pop(context, source),
417-
),
418-
),
412+
padding: const EdgeInsets.symmetric(horizontal: 16),
413+
child: ThumbnailGrid(
414+
sources: value.sources.values.toList(),
415+
selectedSource: value.selectedSource,
416+
onSelectSource: (source) => Navigator.pop(context, source),
417+
),
418+
),
419419
);
420420
},
421421
);

dogfooding/lib/screens/call_stats_screen.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class CallStatsScreen extends StatelessWidget {
3636
final subscriberBitrate = state.subscriber?.bitrateKbps;
3737
final publisherBitrate = state.publisher?.bitrateKbps;
3838

39-
final batteryDrained = state.initialBatteryLevel != null &&
39+
final batteryDrained =
40+
state.initialBatteryLevel != null &&
4041
state.batteryLevelHistory.isNotEmpty
4142
? state.initialBatteryLevel! - state.batteryLevelHistory.last
4243
: null;

dogfooding/lib/screens/home_screen.dart

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -383,31 +383,31 @@ class _JoinForm extends StatelessWidget {
383383
}
384384

385385
Widget _refreshIconButton() => IconButton(
386-
icon: const Icon(Icons.refresh),
387-
color: Colors.white,
388-
padding: EdgeInsets.zero,
389-
onPressed: () {
390-
// generate a 10 character nanoId for call id
391-
final callId = generateAlphanumericString(10);
392-
callIdController.value = TextEditingValue(
393-
text: callId,
394-
selection: TextSelection.collapsed(offset: callId.length),
395-
);
396-
},
386+
icon: const Icon(Icons.refresh),
387+
color: Colors.white,
388+
padding: EdgeInsets.zero,
389+
onPressed: () {
390+
// generate a 10 character nanoId for call id
391+
final callId = generateAlphanumericString(10);
392+
callIdController.value = TextEditingValue(
393+
text: callId,
394+
selection: TextSelection.collapsed(offset: callId.length),
397395
);
396+
},
397+
);
398398

399399
Widget _scanQRButton(BuildContext context) => IconButton(
400-
icon: const Icon(Icons.qr_code),
401-
color: Colors.white,
402-
padding: EdgeInsets.zero,
403-
onPressed: () async {
404-
final result = await QrCodeScanner.scan(context);
405-
406-
if (context.mounted && result != null) {
407-
await _handleJoinUrl(context, result);
408-
}
409-
},
410-
);
400+
icon: const Icon(Icons.qr_code),
401+
color: Colors.white,
402+
padding: EdgeInsets.zero,
403+
onPressed: () async {
404+
final result = await QrCodeScanner.scan(context);
405+
406+
if (context.mounted && result != null) {
407+
await _handleJoinUrl(context, result);
408+
}
409+
},
410+
);
411411

412412
Future<void> _handleJoinUrl(BuildContext context, String url) async {
413413
Uri uri;
@@ -466,7 +466,8 @@ class _JoinForm extends StatelessWidget {
466466
// Fetch the callId from the path components
467467
// e.g https://getstream.io/join/path-call-id
468468
final pathSegmentsLength = uri.pathSegments.length;
469-
final callPathId = pathSegmentsLength >= 2 &&
469+
final callPathId =
470+
pathSegmentsLength >= 2 &&
470471
uri.pathSegments[pathSegmentsLength - 2] == 'join'
471472
? uri.pathSegments.last
472473
: null;

dogfooding/lib/screens/lobby_screen.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class LobbyScreen extends StatefulWidget {
1616
});
1717

1818
final void Function(CallConnectOptions, StreamVideoEffectsManager)
19-
onJoinCallPressed;
19+
onJoinCallPressed;
2020
final Call call;
2121

2222
@override
@@ -134,9 +134,9 @@ class _LobbyScreenState extends State<LobbyScreen> {
134134
if (_blurEnabled) {
135135
await _videoEffectsManager
136136
.applyBackgroundBlurFilter(
137-
BlurIntensity.medium,
138-
track: _cameraTrack,
139-
);
137+
BlurIntensity.medium,
138+
track: _cameraTrack,
139+
);
140140
} else {
141141
await _videoEffectsManager.disableAllFilters(
142142
track: _cameraTrack,

0 commit comments

Comments
 (0)