mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 02:37:25 +01:00
29 lines
627 B
Dart
29 lines
627 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../backend.dart';
|
|
|
|
class HomeScreen extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final backend = Backend.of(context);
|
|
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Text('Musicus'),
|
|
),
|
|
// For debugging purposes
|
|
body: ListView(
|
|
children: <Widget>[
|
|
ListTile(
|
|
title: Text('Start player'),
|
|
onTap: backend.startPlayer,
|
|
),
|
|
ListTile(
|
|
title: Text('Play/Pause'),
|
|
onTap: backend.playPause,
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|