11 lines
447 B
Dart
11 lines
447 B
Dart
import 'dart:math' as math;
|
|
|
|
/// The widest the conversation's reading column grows: transcript rows and
|
|
/// the floating composer share it, centred, so a wide window keeps a
|
|
/// comfortable line length instead of stretching messages edge to edge.
|
|
const double kChatReadingWidth = 760;
|
|
|
|
/// The space on each side of the centred reading column in [width].
|
|
double chatReadingInset(double width) =>
|
|
math.max(0, (width - kChatReadingWidth) / 2);
|