Skip to content

Commit

Permalink
[Android] KmoniStatusのProgressIndicatorのサイズ調整 (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
YumNumm authored Dec 4, 2023
1 parent 681aedb commit 3807cf2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
16 changes: 13 additions & 3 deletions lib/feature/home/component/sheet/status_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ class SheetStatusWidget extends ConsumerWidget {
),
),
),
const SizedBox(width: 4),
const CircularProgressIndicator.adaptive(),
const SizedBox(width: 8),
const SizedBox(
height: 20,
width: 20,
child: CircularProgressIndicator.adaptive(),
),
],
_
when isInitialized &&
Expand Down Expand Up @@ -136,7 +140,13 @@ class SheetStatusWidget extends ConsumerWidget {
),
),
],
_ => [const CircularProgressIndicator.adaptive()],
_ => [
const SizedBox(
height: 20,
width: 20,
child: CircularProgressIndicator.adaptive(),
),
],
},
],
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Socket telegramSocketIo(TelegramSocketIoRef ref) {
OptionBuilder()
.setTransports(['websocket'])
.enableReconnection()
.enableAutoConnect()
.enableForceNew()
.setQuery({'key': authorization})
.build(),
Expand All @@ -37,8 +38,13 @@ Socket telegramSocketIo(TelegramSocketIoRef ref) {
// 再接続
})
..onAny((event, data) {
talker.logTyped(TelegramWebSocketLog('Event: $event ($data)'));
log('Event: $event ($data)');
talker.logTyped(
TelegramWebSocketLog(
'Event: $event ($data)'
.replaceAll(url, '**')
.replaceAll(authorization, '++'),
),
);
})
..onPing((data) {
log('Ping: $data');
Expand Down
11 changes: 7 additions & 4 deletions lib/feature/settings/settings_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,13 @@ class SettingsScreen extends HookConsumerWidget {
),
),
Center(
child: Text(
'EQMonitor v${packageInfo.version} (${packageInfo.buildNumber})',
style: textTheme.bodySmall!.copyWith(
color: theme.colorScheme.onSurface.withOpacity(0.8),
child: Padding(
padding: const EdgeInsets.only(bottom: 16),
child: Text(
'EQMonitor v${packageInfo.version} (${packageInfo.buildNumber})',
style: textTheme.bodySmall!.copyWith(
color: theme.colorScheme.onSurface.withOpacity(0.8),
),
),
),
),
Expand Down

0 comments on commit 3807cf2

Please sign in to comment.