mucke/lib/presentation/widgets/shuffle_all_button.dart
2020-08-25 16:23:52 +02:00

19 lines
514 B
Dart

import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../state/audio_store.dart';
class ShuffleAllButton extends StatelessWidget {
const ShuffleAllButton({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
final AudioStore audioStore = Provider.of<AudioStore>(context);
return RaisedButton(
child: const Text('Shuffle All'),
onPressed: () => audioStore.shuffleAll(),
color: Theme.of(context).accentColor,
);
}
}