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.
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class BeeBackButton extends StatelessWidget {
|
|
|
|
final Color color;
|
|
|
|
|
|
|
|
const BeeBackButton({Key? key, this.color = Colors.black}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Navigator.canPop(context)
|
|
|
|
? IconButton(
|
|
|
|
onPressed: () => Navigator.pop(context),
|
|
|
|
icon: Icon(
|
|
|
|
CupertinoIcons.chevron_back,
|
|
|
|
color: color,
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: SizedBox();
|
|
|
|
}
|
|
|
|
}
|