Use const TextStyle constructor

parent a058a049
......@@ -24,16 +24,12 @@ import 'package:pattle/src/ui/util/room.dart';
class ChatName extends StatelessWidget {
final Room room;
TextStyle style;
final TextStyle style;
ChatName({
@required this.room,
this.style,
}) {
if (style == null) {
style = TextStyle();
}
}
this.style = const TextStyle(),
});
TextStyle _textStyle() => style.copyWith(
fontWeight: FontWeight.w600,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment