refactored and condensed technical documentation and comments across the codebase to improve readability
This commit is contained in:
@@ -2,11 +2,9 @@ import 'package:flutter/material.dart';
|
||||
|
||||
/// Central place for rendering emoji glyphs (reactions, pickers, …).
|
||||
///
|
||||
/// Emojis used to be drawn as bare `Text(emoji)` widgets all over the Talk UI,
|
||||
/// which meant they inherited the small default body text size and looked
|
||||
/// inconsistent. [EmojiText] gives every emoji a uniform, comfortably large
|
||||
/// size and forces the platform's color-emoji font so the rendering is the same
|
||||
/// everywhere.
|
||||
/// Gives every emoji a uniform, comfortably large size and forces the
|
||||
/// platform's color-emoji font, so rendering stays consistent everywhere —
|
||||
/// bare `Text(emoji)` inherited the small body size and looked inconsistent.
|
||||
class EmojiText extends StatelessWidget {
|
||||
/// Size for emojis shown inline next to other text, e.g. reaction chips.
|
||||
static const double sizeInline = 15;
|
||||
|
||||
Reference in New Issue
Block a user