修复社区文本颜色显示

hmxc
小赖 4 years ago
parent 33c5cb4299
commit fd3952c811

@ -7,7 +7,7 @@ class AppTheme {
return ThemeData(primarySwatch: Colors.blue).copyWith( return ThemeData(primarySwatch: Colors.blue).copyWith(
primaryColor: Color(0xFFFFD000), primaryColor: Color(0xFFFFD000),
accentColor: Color(0xFFFFD000), accentColor: Color(0xFFFFD000),
textTheme: TextTheme( textTheme: ThemeData.light().textTheme.copyWith(
subtitle1: TextStyle( subtitle1: TextStyle(
fontSize: 28.sp, fontSize: 28.sp,
color: Color(0xFF333333), color: Color(0xFF333333),

@ -1,5 +1,6 @@
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
@ -34,7 +35,6 @@ class _PersonalIndexState extends State<PersonalIndex>
pinned: true, pinned: true,
toolbarHeight: 0, toolbarHeight: 0,
elevation: 0, elevation: 0,
stretch: true,
floating: true, floating: true,
expandedHeight: 450.w - height, expandedHeight: 450.w - height,
backgroundColor: Colors.white, backgroundColor: Colors.white,
@ -191,10 +191,16 @@ class _PersonalIndexState extends State<PersonalIndex>
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
double _statusHeight = MediaQuery.of(context).padding.top; final double _statusHeight = MediaQuery.of(context).padding.top;
final userProvider = Provider.of<UserProvider>(context);
return Scaffold( return Scaffold(
body: CustomScrollView( body: EasyRefresh(
physics: AlwaysScrollableScrollPhysics(parent: BouncingScrollPhysics()), header: MaterialHeader(),
onRefresh: () async {
await userProvider.updateProfile();
await userProvider.updateUserDetail();
},
child: CustomScrollView(
slivers: <Widget>[ slivers: <Widget>[
_sliverAppBar(_statusHeight), _sliverAppBar(_statusHeight),
// SliverToBoxAdapter( // SliverToBoxAdapter(
@ -265,6 +271,7 @@ class _PersonalIndexState extends State<PersonalIndex>
), ),
], ],
), ),
),
); );
} }
} }

@ -222,7 +222,10 @@ class _ChatCardState extends State<ChatCard> {
if (e.parentName != null) buffer.write('回复${e.parentName}'); if (e.parentName != null) buffer.write('回复${e.parentName}');
buffer.write(':${e.content}'); buffer.write(':${e.content}');
return InkWell( return InkWell(
child: buffer.toString().text.make(), child: Text(
buffer.toString(),
style: Theme.of(context).textTheme.subtitle2,
),
onTap: () { onTap: () {
SendAChat.send(parentId: e.id, themeId: widget.model.id); SendAChat.send(parentId: e.id, themeId: widget.model.id);
}, },

Loading…
Cancel
Save