broken release much
i forgot how to dart for a second there
This commit is contained in:
parent
055163b5b1
commit
1668b784e9
|
@ -80,7 +80,7 @@ class _LogsPageState extends State<LogsPage> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final appState = Provider.of<AppState>(context, listen: false);
|
||||
|
||||
appState.currentIndex = 2;
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Logs'),
|
||||
|
@ -90,12 +90,6 @@ class _LogsPageState extends State<LogsPage> {
|
|||
child: SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: SingleChildScrollView(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Expanded(
|
||||
child: DataTable(
|
||||
columns: const [
|
||||
DataColumn(label: Text('Name')),
|
||||
|
@ -104,8 +98,7 @@ class _LogsPageState extends State<LogsPage> {
|
|||
DataColumn(label: Text('Type')),
|
||||
],
|
||||
rows: logs.map((log) {
|
||||
final controlledBy =
|
||||
log['controlledBy'] as Map<String, dynamic>?;
|
||||
final controlledBy = log['controlledBy'] as Map<String, dynamic>?;
|
||||
if (controlledBy != null) {
|
||||
final name = getDisplayName(controlledBy);
|
||||
final intensity = log['intensity'] as int?;
|
||||
|
@ -122,15 +115,10 @@ class _LogsPageState extends State<LogsPage> {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
return const DataRow(cells: []);
|
||||
}).toList(),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
bottomNavigationBar: BottomBar(
|
||||
|
|
|
@ -66,7 +66,7 @@ class _SliderPageState extends State<SliderPage> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final appState = Provider.of<AppState>(context, listen: false);
|
||||
|
||||
appState.currentIndex = 0;
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Openshock Companion'),
|
||||
|
|
|
@ -52,7 +52,7 @@ class _SettingsPageState extends State<SettingsPage> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final appState = Provider.of<AppState>(context, listen: false);
|
||||
|
||||
appState.currentIndex = 1;
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Settings'),
|
||||
|
@ -127,13 +127,14 @@ class _SettingsPageState extends State<SettingsPage> {
|
|||
appState.currentIndex = index;
|
||||
setState(() {
|
||||
if (index == 0) {
|
||||
appState.currentIndex = 0;
|
||||
Navigator.popUntil(context, (route) => route.isFirst);
|
||||
appState.currentIndex = 0;
|
||||
} else if (index == 2) {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => const LogsPage()),
|
||||
);
|
||||
appState.currentIndex = 2;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@ description: Companion app for managing openshock-compatible devices
|
|||
# pub.dev using `flutter pub publish`. This is preferred for private packages.
|
||||
publish_to: 'none'
|
||||
|
||||
version: 0.2.3
|
||||
version: 0.2.4
|
||||
|
||||
environment:
|
||||
sdk: '>=3.1.2 <4.0.0'
|
||||
|
|
Loading…
Reference in a new issue