match start activity title to regular title style (#4708)

* match start activity title to regular title style

* center title and only shrink text on mobile

* center align text

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
avashilling 2025-11-20 13:47:46 -05:00 committed by GitHub
parent d3fdd53245
commit 54c74cbb33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,19 @@ class ActivitySessionStartView extends StatelessWidget {
leadingWidth: 52.0,
title: controller.activity == null
? null
: Text(controller.activity!.title),
: Center(
child: Text(
controller.activity!.title,
maxLines: 2,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.center,
style: !FluffyThemes.isColumnMode(context)
? const TextStyle(
fontSize: 16,
)
: null,
),
),
leading: Padding(
padding: const EdgeInsets.only(left: 12.0),
child: Center(