Created
February 6, 2022 22:39
-
-
Save mkuehle/d20dae376763ac8138e3692e59e080d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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