horizontal scrolling mayhaps

This commit is contained in:
Mercurio 2023-11-13 12:59:27 +01:00 committed by GitHub
parent 911e53938b
commit 055163b5b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ class _LogsPageState extends State<LogsPage> {
final shockerId = prefs.getString('shockerId'); final shockerId = prefs.getString('shockerId');
if (apiKey == null || shockerId == null) { if (apiKey == null || shockerId == null) {
// fuck you i'm not going to properly handle missing stuff // fuck you i dont handle missing stuff
return; return;
} }
@ -50,7 +50,7 @@ class _LogsPageState extends State<LogsPage> {
}); });
} }
} else { } else {
// fuck you i'm not going to properly handle missing stuff // Fuck you im not handling errors either
} }
} }
@ -87,16 +87,15 @@ class _LogsPageState extends State<LogsPage> {
), ),
body: RefreshIndicator( body: RefreshIndicator(
onRefresh: _handleRefresh, onRefresh: _handleRefresh,
child: Scrollbar( child: SingleChildScrollView(
thumbVisibility: true, scrollDirection: Axis.horizontal,
child: SingleChildScrollView(
child: Padding( child: Padding(
padding: const EdgeInsets.all(16.0), padding: const EdgeInsets.all(16.0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
const Text('Logs'),
Expanded( Expanded(
child: SingleChildScrollView(
child: DataTable( child: DataTable(
columns: const [ columns: const [
DataColumn(label: Text('Name')), DataColumn(label: Text('Name')),
@ -128,12 +127,12 @@ class _LogsPageState extends State<LogsPage> {
}).toList(), }).toList(),
), ),
), ),
),
], ],
), ),
), ),
), ),
), ),
),
bottomNavigationBar: BottomBar( bottomNavigationBar: BottomBar(
currentIndex: appState.currentIndex, currentIndex: appState.currentIndex,
onTap: (index) { onTap: (index) {