@@ -8,6 +8,7 @@ import '../../app/theme.dart' show kPinoBrandBlue;
88import '../project/folder_browser.dart' ;
99import '../widgets/connection_chip.dart' ;
1010import '../widgets/glass.dart' ;
11+ import '../widgets/sheet_header.dart' ;
1112
1213/// Brand blue accent used for running/active glass affordances (shared token).
1314const _kBrandBlue = kPinoBrandBlue;
@@ -74,17 +75,12 @@ class HomeScreen extends ConsumerWidget {
7475 } else {
7576 target = await showModalBottomSheet <Project >(
7677 context: context,
78+ showDragHandle: true ,
7779 builder: (ctx) => SafeArea (
7880 child: Column (
7981 mainAxisSize: MainAxisSize .min,
8082 children: [
81- const Padding (
82- padding: EdgeInsets .fromLTRB (16 , 16 , 16 , 8 ),
83- child: Text (
84- 'Spawn new session in…' ,
85- style: TextStyle (fontWeight: FontWeight .w600),
86- ),
87- ),
83+ const SheetHeader (title: 'Spawn new session in…' ),
8884 for (final p in projects)
8985 ListTile (
9086 leading: const Icon (Icons .folder_outlined),
@@ -303,19 +299,26 @@ class _AttachPastButton extends ConsumerWidget {
303299 showDragHandle: true ,
304300 builder: (ctx) => SafeArea (
305301 child: metas.isEmpty
306- ? const Padding (
307- padding: EdgeInsets .all (24 ),
308- child: Text ('No past sessions.' , textAlign: TextAlign .center),
302+ ? Column (
303+ mainAxisSize: MainAxisSize .min,
304+ children: [
305+ SheetHeader (
306+ title: 'Resume a past session in ${project .name }' ,
307+ ),
308+ const Padding (
309+ padding: EdgeInsets .fromLTRB (24 , 8 , 24 , 24 ),
310+ child: Text (
311+ 'No past sessions.' ,
312+ textAlign: TextAlign .center,
313+ ),
314+ ),
315+ ],
309316 )
310317 : ListView (
311318 shrinkWrap: true ,
312319 children: [
313- Padding (
314- padding: const EdgeInsets .fromLTRB (16 , 16 , 16 , 8 ),
315- child: Text (
316- 'Resume a past session in ${project .name }' ,
317- style: const TextStyle (fontWeight: FontWeight .w600),
318- ),
320+ SheetHeader (
321+ title: 'Resume a past session in ${project .name }' ,
319322 ),
320323 for (final m in metas)
321324 ListTile (
0 commit comments