You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
665 B
Dart
25 lines
665 B
Dart
import 'package:hmg_patient_app_new/theme/colors.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ArrowBack extends StatelessWidget {
|
|
final Function? onTap;
|
|
final Color color;
|
|
|
|
ArrowBack({Key? key, this.onTap, this.color = whiteColor}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
// ProjectViewModel projectViewModel = Provider.of(context);
|
|
return GestureDetector(
|
|
behavior: HitTestBehavior.opaque,
|
|
onTap: Feedback.wrapForTap(() {
|
|
onTap != null ? onTap!() : Navigator.maybePop(context);
|
|
}, context),
|
|
child: Icon(
|
|
Icons.arrow_back_ios,
|
|
color: color,
|
|
),
|
|
);
|
|
}
|
|
}
|