36 lines
836 B
Dart
36 lines
836 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'next_button.dart';
|
|
import 'play_pause_button.dart';
|
|
import 'previous_button.dart';
|
|
import 'shuffle_button.dart';
|
|
|
|
class PlaybackControl extends StatelessWidget {
|
|
const PlaybackControl({Key key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
children: const [
|
|
IconButton(
|
|
icon: Icon(
|
|
Icons.repeat,
|
|
size: 20.0,
|
|
color: Colors.white10,
|
|
),
|
|
onPressed: null,
|
|
),
|
|
PreviousButton(iconSize: 32.0),
|
|
PlayPauseButton(
|
|
circle: true,
|
|
iconSize: 52.0,
|
|
),
|
|
NextButton(iconSize: 32.0),
|
|
ShuffleButton(
|
|
iconSize: 20.0,
|
|
),
|
|
],
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
);
|
|
}
|
|
}
|