aboutsummaryrefslogtreecommitdiffstats
path: root/lib/core/utils/widgets/back_button.dart
blob: 9d7db02e62156c6d39054ec5a752a921e650d2f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import 'package:flutter_ics_homescreen/export.dart';

class CustomBackButton extends ConsumerWidget {
  const CustomBackButton({super.key});

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    return BackButton(
      onPressed: () {
        ref.read(appProvider.notifier).update(AppState.home);
      },
    );
  }
}