Commit efeffffb authored by 朱翠翠's avatar 朱翠翠

字体

parent 3f65960e
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
* @date 2019-10-13 * @date 2019-10-13
**/ **/
import 'dart:io';
import 'package:cached_network_image/cached_network_image.dart'; import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
...@@ -96,7 +98,7 @@ Text baseText(String text, double fontSize, Color color, ...@@ -96,7 +98,7 @@ Text baseText(String text, double fontSize, Color color,
fontSize: fontSize, fontSize: fontSize,
color: color, color: color,
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: bold ? FontWeight.w700 : FontWeight.w400), fontWeight: bold ? FontWeight.w600 : FontWeight.w400),
maxLines: maxLines, maxLines: maxLines,
overflow: overflow == null ? TextOverflow.ellipsis : overflow, overflow: overflow == null ? TextOverflow.ellipsis : overflow,
); );
......
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