| 12345678910111213141516171819202122232425262728293031323334 |
- import 'package:flutter/material.dart';
- import '../../../core/theme/app_colors.dart';
- import '../../../core/widgets/app_icon.dart';
- import '../../../core/widgets/pressable.dart';
- class JellyfinBackButton extends StatelessWidget {
- const JellyfinBackButton({super.key});
- @override
- Widget build(BuildContext context) {
- final colors = context.colors;
- return Pressable(
- onTap: () => Navigator.of(context).pop(),
- semanticLabel: 'Back',
- pressedScale: 0.92,
- child: Container(
- width: 83,
- height: 83,
- decoration: BoxDecoration(
- color: colors.surface,
- shape: BoxShape.circle,
- border: Border.all(color: colors.border),
- ),
- alignment: Alignment.center,
- child: AppIcon(
- 'assets/icons/arrow-left.svg',
- size: 36,
- color: colors.ink,
- ),
- ),
- );
- }
- }
|