Dynamisches Dashboard-Widget, das Ihren Benutzern die Erstellung eigener Layouts ermöglicht. Größenänderung, Verschiebung, indirekte Größenänderung/Verschiebung und automatische Neugestaltung werden unterstützt.
Aus öffentlichen Paketdaten erstellte Orientierung.
Das Dashboard-Paket bietet ein dynamisches, vom Benutzer konfigurierbares Widget zur Erstellung anpassbarer Layouts. Benutzer können Widgets innerhalb des Dashboards frei vergrößern, verschieben und neu anordnen, mit Unterstützung für indirektes Vergrößern und automatisches Neulayout. Ideal für Dashboards, die interaktive Anpassung erfordern, funktioniert auf allen wichtigen Plattformen wie Android, iOS, Web, macOS, Windows und Linux. Das Paket ist für Entwickler gedacht, die flexible, responsive Benutzeroberflächen suchen, die sich in Echtzeit an die Nutzerpräferenzen anpassen.
Anwendungsfälle
Anpassbare Analyse-Dashboards
Benutzerdefinierte Layout-Schnittstellen
Interaktive Admin-Panels
Echtzeit-Datenvisualisierung
Reaktive gridbasierte Anwendungen
Hauptmerkmale
Widget-Umpositionierung per Drag-and-Drop
Größenanpassbare Widgets mit automatischer Neugestaltung
Dashboard can be thought of as a dynamic grid. Your users can create their own layouts, add new widgets or remove widgets.
Layout divides the screen into horizontal slots according to the entered value. The aspect ratio of the slots also determine their height. Widgets called DashboardItem are placed in these slots. This layout can be changed later.
Resize
Dashboard Items can be resized both by long pressing on mobile and by holding and moving on desktop/browser.
Move
Dashboard Item locations can be changed by long pressing on mobile or by holding and pulling on desktop/browser.
Slots Changes
With dynamic slot count, you can re-layout window size changes.
>
Storage Delegate
The layout information of the users can be stored in the database or on the local disk.
Define your storage delegate.
classMyItemStorageextendsDashboardItemStorageDelegate{
@overrideFutureOr<List<DashboardItem>> getAllItems(int slotCount) {
// return items from db.
}
@overrideFutureOr<void> onItemsUpdated(
List<DashboardItem> items, int slotCount) {
// save new layouts to db.
}
//[...]
}
Slide to top items initially. Auto relayout places items to top as possible.
slideToTop: true
Before:
>
After:
>
Shrink
Shrink items when re-layout or editing is possible.
Edit Mode Settings
See code comments for edit mode settings parameters.
All is optional.
EditModeSettings(
// animation settings
curve: Curves.easeInOutCirc,
duration: constDuration(milliseconds: 200),
// fill editing item actual size
fillEditingBackground: true,
// space that can be held to resize
resizeCursorSide: 20,
// draw lines for slots
paintBackgroundLines: true,
// shrink items when editing if possible and necessary
shrinkOnMove: true,
// long press to edit
longPressEnabled: true,
// pan to edit
panEnabled: true,
backgroundStyle: constEditModeBackgroundStyle(
fillColor: Colors.red,
lineWidth: 1.5,
lineColor: Colors.black,
// line by vertical space
dualLineHorizontal: true,
// line by horizontal space
dualLineVertical: true));