fix: shrink lemma SVG in work zoom card (#1559)

pull/1593/head
ggurdin 10 months ago committed by GitHub
parent 1d8e68a147
commit 723e28a314
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,13 +1,14 @@
import 'package:flutter/material.dart';
import 'package:matrix/matrix.dart';
import 'package:swipe_to_action/swipe_to_action.dart';
import 'package:fluffychat/config/themes.dart'; import 'package:fluffychat/config/themes.dart';
import 'package:fluffychat/pages/chat/chat.dart'; import 'package:fluffychat/pages/chat/chat.dart';
import 'package:fluffychat/pages/chat/events/message_content.dart'; import 'package:fluffychat/pages/chat/events/message_content.dart';
import 'package:fluffychat/pangea/events/event_wrappers/pangea_message_event.dart'; import 'package:fluffychat/pangea/events/event_wrappers/pangea_message_event.dart';
import 'package:fluffychat/utils/date_time_extension.dart'; import 'package:fluffychat/utils/date_time_extension.dart';
import 'package:fluffychat/widgets/matrix.dart'; import 'package:fluffychat/widgets/matrix.dart';
import 'package:flutter/material.dart';
import 'package:matrix/matrix.dart';
import 'package:swipe_to_action/swipe_to_action.dart';
import '../../../config/app_config.dart'; import '../../../config/app_config.dart';
class ActivityPlanMessage extends StatelessWidget { class ActivityPlanMessage extends StatelessWidget {

@ -17,12 +17,13 @@ class LemmaWidget extends StatelessWidget {
return Padding( return Padding(
padding: const EdgeInsets.all(4.0), padding: const EdgeInsets.all(4.0),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Text(token.lemma.text), Text(token.lemma.text),
const SizedBox(width: 6), const SizedBox(width: 6),
SizedBox( SizedBox(
width: 30, width: 20,
height: 30, height: 20,
child: CustomizedSvg( child: CustomizedSvg(
svgUrl: token.lemmaXPCategory.svgURL, svgUrl: token.lemmaXPCategory.svgURL,
colorReplacements: const {}, colorReplacements: const {},

Loading…
Cancel
Save