fix things not being material
This commit is contained in:
parent
5515fde880
commit
75df7319d5
|
@ -114,15 +114,17 @@ class _NotificationsState extends State<Notifications> {
|
|||
children: [
|
||||
Container(
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
reload();
|
||||
},
|
||||
icon: const Icon(Icons.refresh))
|
||||
],
|
||||
child: Material(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
reload();
|
||||
},
|
||||
icon: const Icon(Icons.refresh))
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
|
|
|
@ -30,64 +30,67 @@ class SingleNotif extends StatelessWidget {
|
|||
border: Border.all(color: Theme.of(context).colorScheme.secondary),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Column(
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: () => showDialog(
|
||||
context: context,
|
||||
builder: (context) => ProfileView(model: model.account),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
ProfilePic(url: model.account.avatar),
|
||||
const SizedBox(
|
||||
width: 8,
|
||||
),
|
||||
Expanded(
|
||||
flex: 20,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
SelectableText(
|
||||
model.account.displayName,
|
||||
style: Theme.of(context).textTheme.displaySmall,
|
||||
),
|
||||
SelectableText.rich(
|
||||
TextSpan(
|
||||
text: "${model.account.acct} ",
|
||||
style: Theme.of(context).textTheme.bodySmall,
|
||||
children: [
|
||||
TextSpan(
|
||||
text: model.type.actionName,
|
||||
style:
|
||||
Theme.of(context).textTheme.bodyMedium)
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
child: Material(
|
||||
child: Column(
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: () => showDialog(
|
||||
context: context,
|
||||
builder: (context) => ProfileView(model: model.account),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
ProfilePic(url: model.account.avatar),
|
||||
const SizedBox(
|
||||
width: 8,
|
||||
),
|
||||
),
|
||||
Icon(
|
||||
model.type.icon,
|
||||
size: 64,
|
||||
),
|
||||
],
|
||||
Expanded(
|
||||
flex: 20,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
SelectableText(
|
||||
model.account.displayName,
|
||||
style: Theme.of(context).textTheme.displaySmall,
|
||||
),
|
||||
SelectableText.rich(
|
||||
TextSpan(
|
||||
text: "${model.account.acct} ",
|
||||
style: Theme.of(context).textTheme.bodySmall,
|
||||
children: [
|
||||
TextSpan(
|
||||
text: model.type.actionName,
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.bodyMedium)
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Icon(
|
||||
model.type.icon,
|
||||
size: 64,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
(model.post != null)
|
||||
? (Post(
|
||||
reblogVisible: false,
|
||||
model: model.post!,
|
||||
))
|
||||
: const SizedBox(
|
||||
width: 0,
|
||||
height: 0,
|
||||
),
|
||||
],
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
(model.post != null)
|
||||
? (Post(
|
||||
reblogVisible: false,
|
||||
model: model.post!,
|
||||
))
|
||||
: const SizedBox(
|
||||
width: 0,
|
||||
height: 0,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -104,7 +104,7 @@ class TimelineState extends State<Timeline> {
|
|||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Container(
|
||||
Material(
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
child: Wrap(
|
||||
alignment: WrapAlignment.spaceEvenly,
|
||||
|
|
|
@ -111,8 +111,10 @@ class _ThreadState extends State<Thread> {
|
|||
Border.all(color: Theme.of(context).colorScheme.secondary),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Column(
|
||||
children: c,
|
||||
child: Material(
|
||||
child: Column(
|
||||
children: c,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue