mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
22 lines
543 B
Dart
22 lines
543 B
Dart
import 'package:shadcn_flutter/shadcn_flutter.dart';
|
|
import 'package:spotube/collections/spotube_icons.dart';
|
|
|
|
class BackButton extends StatelessWidget {
|
|
final Color? color;
|
|
const BackButton({
|
|
super.key,
|
|
this.color,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return IconButton.ghost(
|
|
size: const ButtonSize(.9),
|
|
icon: color != null
|
|
? Icon(SpotubeIcons.angleLeft, color: color)
|
|
: const Icon(SpotubeIcons.angleLeft),
|
|
onPressed: () => Navigator.of(context).pop(),
|
|
);
|
|
}
|
|
}
|