mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-15 02:12:25 -06:00
feat: Improve container opening animation, improve scrolling on details page
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ColoredTabBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
const ColoredTabBar({
|
||||
super.key,
|
||||
this.color,
|
||||
required this.tabBar,
|
||||
});
|
||||
|
||||
final TabBar tabBar;
|
||||
final Color? color;
|
||||
|
||||
@override
|
||||
Size get preferredSize => tabBar.preferredSize;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ColoredBox(
|
||||
color: color ?? Theme.of(context).colorScheme.background,
|
||||
child: tabBar,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user