Skip to content

Commit ae2b9a2

Browse files
committed
user [nfc]: Split avatar, presence, status widgets out from content.dart
These started here with Avatar, one little widget which we didn't have a more natural home for and so tucked in with the content widgets. That gradually grew from 34 lines to 159 lines, across several widgets. Then when we built widgets for presence and user status, we put them here as they're natural companions of the avatar. Now it's 367 lines in total, none of it really about message content; so give this all its own separate file.
1 parent f4094e3 commit ae2b9a2

19 files changed

+471
-438
lines changed

lib/widgets/autocomplete.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
33
import '../generated/l10n/zulip_localizations.dart';
44
import '../model/emoji.dart';
55
import '../model/store.dart';
6-
import 'content.dart';
76
import 'emoji.dart';
87
import 'icons.dart';
98
import 'store.dart';
@@ -13,6 +12,7 @@ import '../model/narrow.dart';
1312
import 'compose_box.dart';
1413
import 'text.dart';
1514
import 'theme.dart';
15+
import 'user.dart';
1616

1717
abstract class AutocompleteField<QueryT extends AutocompleteQuery, ResultT extends AutocompleteResult> extends StatefulWidget {
1818
const AutocompleteField({

0 commit comments

Comments
 (0)