You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
justMusic/Sources/justMUSIC/lib/components/back_button.dart

35 lines
790 B

import 'package:flutter/Material.dart';
import '../values/constants.dart';
class BackButtonComponent extends StatefulWidget {
const BackButtonComponent({Key? key}) : super(key: key);
@override
State<BackButtonComponent> createState() => _BackButtonComponentState();
}
class _BackButtonComponentState extends State<BackButtonComponent> {
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: () {
Navigator.pop(context);
},
child: ClipOval(
child: Container(
height: 40,
width: 40,
color: Colors.white,
child: Center(
child: Icon(
Icons.arrow_back_outlined,
color: bgColor,
),
),
),
),
);
}
}