Skip to content

Commit

Permalink
fix(science-clubs): try to improve overflow-in-sci-clubs-card (#232)
Browse files Browse the repository at this point in the history
* fix/overflow-in-sci-clubs-card

* feat/ autosize text in students organizations

---------

Co-authored-by: Tomasz Trela <153635094+TTomaszPWR@users.noreply.github.com>
Co-authored-by: Szymon Kowaliński <szymon@kowalinski.dev>
  • Loading branch information
3 people authored Sep 29, 2024
1 parent 5f6e217 commit 9a8a3bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "dart:math";

import "package:auto_size_text/auto_size_text.dart";
import "package:flutter/material.dart";

import "../../../utils/calculate_lines.dart";
Expand Down Expand Up @@ -46,10 +47,10 @@ class EnsureVisibleTags extends DualTextMaxLines {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
RichText(
AutoSizeText.rich(
doubleText,
maxLines: doubleLines,
overflow: TextOverflow.ellipsis,
text: doubleText,
),
SizedBox(height: spacing),
if (thirdLines > 0)
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ dependencies:
firebase_core: ^3.5.0
firebase_performance: ^0.10.0+7
firebase_messaging: ^15.1.2
auto_size_text: ^3.0.0
dio_cache_interceptor_hive_store: ^3.2.1

dev_dependencies:
Expand Down

0 comments on commit 9a8a3bf

Please sign in to comment.