UAdminDashboard class abstract
Presentation pieces shared by the admin dashboards.
The dashboards grew their own copies of these and drifted apart — one drew a bare Icon where the other used UIconBackground, one hid the sub-label in the subtitle column where the other put it in the trailing slot. Two boards in the same panel should not look like two products, so they share these now.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
chartCard(
BuildContext context, {required String title, required Widget child}) → Widget - A fixed-height titled panel that a chart is dropped into.
-
heroMetric(
String label, String value, IconData icon) → Widget - A single metric inside the coloured hero banner at the top of a dashboard.
-
statCard(
String title, String value, String sub, IconData icon, Color color, VoidCallback? onTap) → Widget - A headline figure with its caption, and an optional coloured note in the trailing slot.