import 'package:flutter/material.dart'; import 'NoteDetailView.dart'; class NotesView extends StatefulWidget { const NotesView({Key? key}) : super(key: key); @override State createState() => _NotesViewState(); } class _NotesViewState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Note'), ), floatingActionButton: FloatingActionButton( onPressed: () { Navigator.of(context).push( MaterialPageRoute( builder: (context) => const NoteDetailView(), ), ); }, child: Icon(Icons.add), ), ); } }