Compare commits

..

1 Commits

Author SHA1 Message Date
Guanciottaman
abdb2dcc3f
Merge ff252d6b14 into 90493f0ea3 2025-09-06 10:25:14 +06:00
3 changed files with 26 additions and 28 deletions

View File

@ -71,34 +71,32 @@ class LogsPage extends HookConsumerWidget {
), ),
) )
], ],
child: SafeArea( child: switch (logsQuery) {
child: switch (logsQuery) { AsyncData(:final value) => InterScrollbar(
AsyncData(:final value) => InterScrollbar( controller: controller,
child: SingleChildScrollView(
padding: const EdgeInsets.all(8.0),
controller: controller, controller: controller,
child: SingleChildScrollView( child: Card(child: SelectableText(value)),
padding: const EdgeInsets.all(8.0),
controller: controller,
child: Card(child: SelectableText(value)),
),
), ),
AsyncError(:final error) => switch (error) { ),
StateError() => Column( AsyncError(:final error) => switch (error) {
mainAxisAlignment: MainAxisAlignment.center, StateError() => Column(
children: [ mainAxisAlignment: MainAxisAlignment.center,
Undraw( children: [
illustration: UndrawIllustration.noData, Undraw(
height: 200 * context.theme.scaling, illustration: UndrawIllustration.noData,
width: 200 * context.theme.scaling, height: 200 * context.theme.scaling,
color: context.theme.colorScheme.primary, width: 200 * context.theme.scaling,
), color: context.theme.colorScheme.primary,
Text(context.l10n.no_logs_found).muted().small(), ),
], Text(context.l10n.no_logs_found).muted().small(),
), ],
_ => Center(child: Text(error.toString())), ),
}, _ => Center(child: Text(error.toString())),
_ => const Center(child: CircularProgressIndicator()), },
}, _ => const Center(child: CircularProgressIndicator()),
), },
); );
} }
} }

View File

@ -1221,7 +1221,7 @@ packages:
description: description:
path: "." path: "."
ref: main ref: main
resolved-ref: "01935a75640092af7947bfb21a497240376f0c83" resolved-ref: "52cd25a12c1af6a8819963d222026539e8537586"
url: "https://github.com/KRTirtho/hetu_spotube_plugin.git" url: "https://github.com/KRTirtho/hetu_spotube_plugin.git"
source: git source: git
version: "0.0.1" version: "0.0.1"

View File

@ -56,7 +56,7 @@ dependencies:
flutter_feather_icons: ^2.0.0+1 flutter_feather_icons: ^2.0.0+1
flutter_form_builder: ^9.6.0 flutter_form_builder: ^9.6.0
flutter_hooks: ^0.20.5 flutter_hooks: ^0.20.5
flutter_inappwebview: ^6.1.5 flutter_inappwebview: ^6.1.3
flutter_localizations: flutter_localizations:
sdk: flutter sdk: flutter
flutter_native_splash: ^2.4.6 flutter_native_splash: ^2.4.6