mucke/lib/presentation/widgets/playback_control.dart

40 lines
968 B
Dart
Raw Normal View History

2020-07-12 18:25:34 +02:00
import 'package:flutter/material.dart';
import 'next_button.dart';
import 'play_pause_button.dart';
import 'previous_button.dart';
2020-08-24 16:43:22 +02:00
import 'shuffle_button.dart';
2020-07-12 18:25:34 +02:00
class PlaybackControl extends StatelessWidget {
const PlaybackControl({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: Row(
2020-08-12 20:59:00 +02:00
children: const [
2020-08-24 16:43:22 +02:00
IconButton(
2020-09-20 12:33:11 +02:00
icon: Icon(
Icons.repeat,
size: 20.0,
color: Colors.white10,
),
2020-08-24 16:43:22 +02:00
onPressed: null,
),
2020-08-12 20:59:00 +02:00
PreviousButton(iconSize: 32.0),
PlayPauseButton(
2020-07-12 18:25:34 +02:00
circle: true,
iconSize: 52.0,
),
2020-08-12 20:59:00 +02:00
NextButton(iconSize: 32.0),
2020-08-24 16:43:22 +02:00
ShuffleButton(
iconSize: 20.0,
),
2020-07-12 18:25:34 +02:00
],
mainAxisAlignment: MainAxisAlignment.spaceBetween,
),
);
}
}