AdminDashboard class
Constructors
AdminDashboard ({Key ? key , required ServerpodClientShared client , String title = 'Serverpod Admin Dashboard' , ThemeMode initialThemeMode = ThemeMode.system , ThemeData ? lightTheme , ThemeData ? darkTheme , BodyBuilder ? customBodyBuilder , DetailsBuilder ? customDetailsBuilder , EditDialogBuilder ? customEditDialogBuilder , DeleteDialogBuilder ? customDeleteDialogBuilder , CreateDialogBuilder ? customCreateDialogBuilder , Future <bool > onLogin (String username , String password )?, String ? loginTitle , String ? loginSubtitle })
const
Properties
client
→ ServerpodClientShared
final
customBodyBuilder
→ BodyBuilder ?
Optional custom body/records pane builder. If provided, replaces the default records pane.
final
customCreateDialogBuilder
→ CreateDialogBuilder ?
Optional custom create/new record dialog builder. If provided, replaces the default create dialog.
final
customDeleteDialogBuilder
→ DeleteDialogBuilder ?
Optional custom delete confirmation dialog builder. If provided, replaces the default delete dialog.
final
customDetailsBuilder
→ DetailsBuilder ?
Optional custom record details builder. If provided, replaces the default record details view.
final
customEditDialogBuilder
→ EditDialogBuilder ?
Optional custom edit/update dialog builder. If provided, replaces the default edit dialog.
final
Optional custom footer builder. If provided, the custom footer will be
displayed above the default footer. The default footer is always shown
and cannot be changed.
final
Optional custom sidebar builder. If provided, replaces the default sidebar.
final
darkTheme
→ ThemeData ?
final
hashCode
→ int
The hash code for this object.
no setter inherited
initialThemeMode
→ ThemeMode
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
lightTheme
→ ThemeData ?
final
loginSubtitle
→ String ?
Login screen subtitle.
final
loginTitle
→ String ?
Login screen title. Defaults to 'Serverpod Admin'.
final
onLogin
→ Future <bool > Function(String username , String password ) ?
Optional login callback. If provided, a login screen will be shown first.
The callback receives username and password and should return true if login
is successful, false otherwise.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Optional map of sidebar item customizations.
Key is the resource key, value contains custom label and icon.
Example: {'users': SidebarItemCustomization(label: 'Users', icon: Icons.people)}
final
title
→ String
final
serverpod_admin_dashboard 0.1.5