mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 18:57:25 +01:00
Add basic track editor
This replaces the recording selector in the main menu.
This commit is contained in:
parent
0145206ed2
commit
20d685a3eb
2 changed files with 110 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
|||
|
||||
import '../backend.dart';
|
||||
import '../database.dart';
|
||||
import '../selectors/recording.dart';
|
||||
import '../editors/tracks.dart';
|
||||
|
||||
import 'person.dart';
|
||||
import 'settings.dart';
|
||||
|
|
@ -25,7 +25,7 @@ class HomeScreen extends StatelessWidget {
|
|||
),
|
||||
PopupMenuItem(
|
||||
value: 1,
|
||||
child: Text('Select recording'),
|
||||
child: Text('Add tracks'),
|
||||
),
|
||||
PopupMenuItem(
|
||||
value: 2,
|
||||
|
|
@ -39,7 +39,8 @@ class HomeScreen extends StatelessWidget {
|
|||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => RecordingsSelector(),
|
||||
builder: (context) => TracksEditor(),
|
||||
fullscreenDialog: true,
|
||||
),
|
||||
);
|
||||
} else if (selected == 2) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue