listbox test

This commit is contained in:
Kevin-Bauer
2022-12-15 15:24:29 +01:00
parent 6b5b51d035
commit 7e9fd3b5c1
2 changed files with 52 additions and 3 deletions
+6 -3
View File
@@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'NewsItem.dart';
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
@@ -151,11 +153,12 @@ class _MyHomePageState extends State<MyHomePage> {
int _selectedIndex = 0;
static const TextStyle optionStyle =
TextStyle(fontSize: 30, fontWeight: FontWeight.bold);
static const List<Widget> _widgetOptions = <Widget>[
Text(
static /*const*/ List<Widget> _widgetOptions = <Widget>[
/*Text(
'Index 0: News',
style: optionStyle,
),
),*/
NewsList(),
Text(
'Index 1: Mängel',
style: optionStyle,