boxchecker/lib/main.dart

54 lines
1.4 KiB
Dart

import 'package:flutter/material.dart';
void main() {
runApp(const BoxChecker());
}
class BoxChecker extends StatelessWidget {
const BoxChecker({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(brightness: Brightness.dark),
themeMode: ThemeMode.dark,
home: const MainListPage(title: 'BoxChecker'),
);
}
}
class MainListPage extends StatefulWidget {
const MainListPage({Key? key, required this.title}) : super(key: key);
final String title;
@override
State<MainListPage> createState() => _MainListPageState();
}
class _MainListPageState extends State<MainListPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
actions: [
IconButton(
onPressed: () {}, // TODO implement dropdown meny for more options
icon: const Icon(Icons.more_vert_rounded),
tooltip: 'More Options',
)
],
),
floatingActionButton: FloatingActionButton(
onPressed: () {}, // TODO Implement add button
tooltip: 'Add List',
child: const Icon(Icons.add),
),
body: ListView.builder(itemBuilder: (context, index) {
return ListTile(); // TODO Implement tile rendering
}),
);
}
}