|
@@ -145,7 +145,7 @@ class TweetDetailPageState extends State<TweetDetailPage> {
|
|
|
String content = listItem['content'];
|
|
|
content = clearHtmlContent(content);
|
|
|
var row = new Row(
|
|
|
- children: <Widget>[
|
|
|
+ children: [
|
|
|
new Padding(
|
|
|
padding: const EdgeInsets.all(10.0),
|
|
|
child: new Image.network(avatar, width: 35.0, height: 35.0,)
|
|
@@ -154,9 +154,9 @@ class TweetDetailPageState extends State<TweetDetailPage> {
|
|
|
child: new Container(
|
|
|
margin: const EdgeInsets.fromLTRB(0.0, 5.0, 0.0, 5.0),
|
|
|
child: new Column(
|
|
|
- children: <Widget>[
|
|
|
+ children: [
|
|
|
new Row(
|
|
|
- children: <Widget>[
|
|
|
+ children: [
|
|
|
new Expanded(
|
|
|
child: new Text(author, style: new TextStyle(color: const Color(0xFF63CA6C)),),
|
|
|
),
|
|
@@ -169,7 +169,7 @@ class TweetDetailPageState extends State<TweetDetailPage> {
|
|
|
new Padding(
|
|
|
padding: const EdgeInsets.fromLTRB(0.0, 0.0, 10.0, 0.0),
|
|
|
child: new Row(
|
|
|
- children: <Widget>[
|
|
|
+ children: [
|
|
|
new Expanded(
|
|
|
child: new Text(content, style: contentStyle,)
|
|
|
)
|
|
@@ -212,9 +212,9 @@ class TweetDetailPageState extends State<TweetDetailPage> {
|
|
|
height: 230.0,
|
|
|
padding: const EdgeInsets.all(20.0),
|
|
|
child: new Column(
|
|
|
- children: <Widget>[
|
|
|
+ children: [
|
|
|
new Row(
|
|
|
- children: <Widget>[
|
|
|
+ children: [
|
|
|
new Text(isMainFloor ? "回复楼主" : "回复"),
|
|
|
new Expanded(child: new Text(title, style: new TextStyle(color: const Color(0xFF63CA6C)),)),
|
|
|
new InkWell(
|
|
@@ -296,7 +296,7 @@ class TweetDetailPageState extends State<TweetDetailPage> {
|
|
|
|
|
|
Widget getTweetView(Map<String, dynamic> listItem) {
|
|
|
var authorRow = new Row(
|
|
|
- children: <Widget>[
|
|
|
+ children: [
|
|
|
new Container(
|
|
|
width: 35.0,
|
|
|
height: 35.0,
|
|
@@ -322,7 +322,7 @@ class TweetDetailPageState extends State<TweetDetailPage> {
|
|
|
new Expanded(
|
|
|
child: new Row(
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
- children: <Widget>[
|
|
|
+ children: [
|
|
|
new Text('${listItem['commentCount']}', style: subtitleStyle,),
|
|
|
new Image.asset('./images/ic_comment.png', width: 20.0, height: 20.0,)
|
|
|
],
|
|
@@ -333,13 +333,13 @@ class TweetDetailPageState extends State<TweetDetailPage> {
|
|
|
var _body = listItem['body'];
|
|
|
_body = clearHtmlContent(_body);
|
|
|
var contentRow = new Row(
|
|
|
- children: <Widget>[
|
|
|
+ children: [
|
|
|
new Expanded(child: new Text(_body),)
|
|
|
],
|
|
|
);
|
|
|
var timeRow = new Row(
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
- children: <Widget>[
|
|
|
+ children: [
|
|
|
new Text(listItem['pubDate'], style: subtitleStyle,)
|
|
|
],
|
|
|
);
|
|
@@ -403,7 +403,7 @@ class TweetDetailPageState extends State<TweetDetailPage> {
|
|
|
columns.add(new Container(
|
|
|
margin: const EdgeInsets.fromLTRB(0.0, 6.0, 0.0, 0.0),
|
|
|
child: new Row(
|
|
|
- children: <Widget>[
|
|
|
+ children: [
|
|
|
new Container(
|
|
|
width: 4.0,
|
|
|
height: 20.0,
|