listbox test
This commit is contained in:
+6
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user