mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
18 lines
473 B
Dart
18 lines
473 B
Dart
import 'package:auto_route/auto_route.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ImAdaptiveRoutePrimaryAppBar extends StatelessWidget
|
|
implements PreferredSizeWidget {
|
|
const ImAdaptiveRoutePrimaryAppBar({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AppBar(
|
|
leading: BackButton(onPressed: () => context.router.root.maybePop()),
|
|
);
|
|
}
|
|
|
|
@override
|
|
Size get preferredSize => const Size.fromHeight(kToolbarHeight);
|
|
}
|