fixed navigation and added create new note page

This commit is contained in:
Giulia
2023-09-28 10:40:01 +02:00
committed by Joe Küng
parent 92f3dcf84d
commit 335fec8793
2 changed files with 19 additions and 3 deletions

View File

@@ -29,9 +29,6 @@ class _NavigationState extends State<Navigation> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(
title: Text("BottomNavBar"),
),
body: Center(child: _widgetOptions.elementAt(_selectedIndex)), body: Center(child: _widgetOptions.elementAt(_selectedIndex)),
bottomNavigationBar: BottomNavigationBar( bottomNavigationBar: BottomNavigationBar(
items: const <BottomNavigationBarItem>[ items: const <BottomNavigationBarItem>[

View File

@@ -0,0 +1,19 @@
import 'package:flutter/material.dart';
class CreateNewNote extends StatefulWidget {
const CreateNewNote({super.key});
@override
State<CreateNewNote> createState() => _CreateNewNoteState();
}
class _CreateNewNoteState extends State<CreateNewNote> {
@override
Widget build(BuildContext context) {
return const Scaffold(
body: Center(
child: Text('CreateNewNote'),
)
);
}
}