Skip to content

Reference

Everything below is exported from package:gisila_studio/gisila_studio.dart. The studio works with Database and TableMeta from gisila_orm.

Page Symbols
GisilaStudio GisilaStudio (constructor, title, allowUnauthenticated, allowInsecure), register, handler
ModelAdmin and save hooks StudioSaveHook, ModelAdmin, buildModelAdmin
Auth StudioAuth, SessionStudioAuth, JwtStudioAuth, credentialWeakness, secretWeakness, minStudioPasswordLength, minStudioSecretLength, studioCsrfToken, constantTimeEquals
I want to… Use
Pick the list columns register(listDisplay:)
Enable search register(searchFields:)
Lock or hide fields on forms readonlyFields, excludeFields
Hash a password before saving onSave
Stamp updated_at autoNowOnUpdateFields
Set default sort and page size ordering, pageSize
Group models in the sidebar group
Configure the login GisilaStudio(username:, password:, secret:, auth:)
Check custom credentials against users Implement StudioAuth
Add a POST form of your own studioCsrfToken
Variable Effect
STUDIO_USERNAME Default for username.
STUDIO_PASSWORD Default for password.
STUDIO_SECRET Default for secret; when set, the shorthand builds JwtStudioAuth.
GISILA_ALLOW_INSECURE=1 Default for allowInsecure: serve with weak credentials (logs a warning).