mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 18:57:25 +01:00
Add recording selector
As a proof of concept some widgets were seperated. The home screen now links to this instead of the recording editor.
This commit is contained in:
parent
a6d795ef3c
commit
0438296bcc
6 changed files with 308 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
|||
|
||||
import '../backend.dart';
|
||||
import '../database.dart';
|
||||
import '../editors/recording.dart';
|
||||
import '../selectors/recording.dart';
|
||||
|
||||
import 'person.dart';
|
||||
import 'settings.dart';
|
||||
|
|
@ -25,7 +25,7 @@ class HomeScreen extends StatelessWidget {
|
|||
),
|
||||
PopupMenuItem(
|
||||
value: 1,
|
||||
child: Text('Add recording'),
|
||||
child: Text('Select recording'),
|
||||
),
|
||||
PopupMenuItem(
|
||||
value: 2,
|
||||
|
|
@ -39,8 +39,7 @@ class HomeScreen extends StatelessWidget {
|
|||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => RecordingEditor(),
|
||||
fullscreenDialog: true,
|
||||
builder: (context) => RecordingsSelector(),
|
||||
),
|
||||
);
|
||||
} else if (selected == 2) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue