adding packages

This commit is contained in:
2026-01-15 14:38:46 -08:00
parent ef86e3ab6a
commit 6869cf47e5
5253 changed files with 726695 additions and 34 deletions
@@ -0,0 +1,43 @@
import 'package:flutter/material.dart';
class GoldenLayoutThemeData {
final Color tabSelectedBackgroundColor;
Color tabBackgroundColor;
Color backgroundColor;
final Color draggableBarsHoveredColor;
final Color tabIconColor;
GoldenLayoutThemeData({
this.tabSelectedBackgroundColor = Colors.grey,
this.backgroundColor,
this.draggableBarsHoveredColor = Colors.grey,
this.tabIconColor = Colors.white,
this.tabBackgroundColor,
}) {
tabBackgroundColor ??= Colors.grey.shade700;
backgroundColor ??= Colors.grey.shade800;
}
}
class GoldenLayoutTheme extends InheritedWidget {
GoldenLayoutTheme({
Key key,
@required this.child,
@required this.data,
}) : super(key: key, child: child);
final GoldenLayoutThemeData data;
@override
final Widget child;
GoldenLayoutThemeData get theme => data ?? GoldenLayoutThemeData();
static GoldenLayoutTheme of(BuildContext context) {
return (context.dependOnInheritedWidgetOfExactType<GoldenLayoutTheme>());
}
@override
bool updateShouldNotify(GoldenLayoutTheme oldWidget) {
return data != oldWidget.data;
}
}