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