1
0
Fork 0
forked from Nexus/nexus

Add room details dialog

Fixes #20
This commit is contained in:
Henry Hiles 2026-05-26 15:31:37 -04:00
commit e69f04f6e7
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
7 changed files with 105 additions and 41 deletions

View file

@ -9,10 +9,12 @@ class Appbar extends StatelessWidget implements PreferredSizeWidget {
final Color? backgroundColor;
final double? scrolledUnderElevation;
final IList<Widget> actions;
final VoidCallback? onTap;
const Appbar({
super.key,
this.title,
this.onTap,
this.backgroundColor,
this.scrolledUnderElevation,
this.leading,
@ -37,11 +39,14 @@ class Appbar extends StatelessWidget implements PreferredSizeWidget {
return GestureDetector(
onPanStart: (_) => windowManager.startDragging(),
child: AppBar(
leading: leading,
leading: InkWell(onTap: onTap, child: leading),
backgroundColor: backgroundColor,
scrolledUnderElevation: scrolledUnderElevation,
actionsPadding: const EdgeInsets.symmetric(horizontal: 8),
title: IgnorePointer(child: title),
title: InkWell(
onTap: onTap,
child: IgnorePointer(child: title),
),
flexibleSpace: GestureDetector(onDoubleTap: maximize),
actions: [
...actions,