Skip to content

Instantly share code, notes, and snippets.

@mkuehle
Created February 6, 2022 22:39
Show Gist options
  • Save mkuehle/d20dae376763ac8138e3692e59e080d9 to your computer and use it in GitHub Desktop.
Save mkuehle/d20dae376763ac8138e3692e59e080d9 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Scaffold Demo',
theme: ThemeData(),
home: Scaffold(
appBar: AppBar(title: const Text('Scaffold Demo')),
body: const Center(child: Text("Normaler Begrüßungstext")),
drawer: const Drawer(
child: Text('Drawer Content'),
),
bottomNavigationBar: BottomNavigationBar(
items: const <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: Icon(Icons.home),
label: 'Home',
),
BottomNavigationBarItem(
icon: Icon(Icons.photo_camera),
label: 'Camera',
),
BottomNavigationBarItem(
icon: Icon(Icons.help),
label: 'Help',
),
],
),
floatingActionButton: FloatingActionButton(
child: const Icon(Icons.add),
onPressed: () {
// action on button press
}),
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment