fix: Minor design fixes

This commit is contained in:
Krille Fear 2021-11-13 19:36:39 +01:00
parent 6b3a94011f
commit 917dde5a1c
2 changed files with 17 additions and 16 deletions

View File

@ -129,8 +129,8 @@ abstract class FluffyThemes {
backgroundColor: Colors.black, backgroundColor: Colors.black,
scaffoldBackgroundColor: Colors.black, scaffoldBackgroundColor: Colors.black,
colorScheme: ThemeData.dark().colorScheme.copyWith( colorScheme: ThemeData.dark().colorScheme.copyWith(
primary: AppConfig.primaryColorLight, primary: AppConfig.chatColor,
secondary: AppConfig.primaryColorLight, secondary: AppConfig.chatColor,
secondaryVariant: AppConfig.secondaryColor, secondaryVariant: AppConfig.secondaryColor,
surface: FluffyThemes.darken(AppConfig.chatColor, 0.4), surface: FluffyThemes.darken(AppConfig.chatColor, 0.4),
), ),
@ -171,7 +171,7 @@ abstract class FluffyThemes {
border: OutlineInputBorder( border: OutlineInputBorder(
borderRadius: BorderRadius.circular(AppConfig.borderRadius)), borderRadius: BorderRadius.circular(AppConfig.borderRadius)),
filled: true, filled: true,
fillColor: FluffyThemes.darken(AppConfig.primaryColorLight, .71), fillColor: FluffyThemes.darken(AppConfig.chatColor, 0.4),
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(AppConfig.borderRadius), borderRadius: BorderRadius.circular(AppConfig.borderRadius),
borderSide: BorderSide( borderSide: BorderSide(

View File

@ -18,21 +18,22 @@ class SeenByRow extends StatelessWidget {
controller.unfolded, controller.unfolded,
); );
const maxAvatars = 7; const maxAvatars = 7;
return AnimatedContainer( return Container(
height: seenByUsers.isEmpty ? 0 : 24, width: double.infinity,
duration: seenByUsers.isEmpty alignment: Alignment.center,
? const Duration(milliseconds: 0) child: AnimatedContainer(
: const Duration(milliseconds: 300),
alignment: controller.filteredEvents.isNotEmpty &&
controller.filteredEvents.first.senderId ==
Matrix.of(context).client.userID
? Alignment.topRight
: Alignment.topLeft,
padding: const EdgeInsets.only(bottom: 4),
child: Container(
constraints: constraints:
const BoxConstraints(maxWidth: FluffyThemes.columnWidth * 2.5), const BoxConstraints(maxWidth: FluffyThemes.columnWidth * 2.5),
alignment: Alignment.center, height: seenByUsers.isEmpty ? 0 : 24,
duration: seenByUsers.isEmpty
? const Duration(milliseconds: 0)
: const Duration(milliseconds: 300),
alignment: controller.filteredEvents.isNotEmpty &&
controller.filteredEvents.first.senderId ==
Matrix.of(context).client.userID
? Alignment.topRight
: Alignment.topLeft,
padding: const EdgeInsets.only(left: 24, right: 24, bottom: 4),
child: Wrap( child: Wrap(
spacing: 4, spacing: 4,
children: [ children: [