fix bug where profile view would be too wide
This commit is contained in:
parent
429cca8ddb
commit
4d2a45ad6c
|
@ -180,7 +180,9 @@ class _ProfileViewState extends State<ProfileView> {
|
|||
),
|
||||
contentPadding: const EdgeInsets.all(0),
|
||||
children: [
|
||||
Column(children: [
|
||||
Container(
|
||||
constraints: global.getConstraints(context),
|
||||
child: Column(children: [
|
||||
loading
|
||||
? Column(
|
||||
children: [
|
||||
|
@ -210,10 +212,9 @@ class _ProfileViewState extends State<ProfileView> {
|
|||
),
|
||||
],
|
||||
),
|
||||
Container(
|
||||
constraints: global.getConstraints(context),
|
||||
width: global.getWidth(context) +
|
||||
MediaQuery.of(context).size.width * 0.2,
|
||||
SizedBox(
|
||||
// constraints: global.getConstraints(context),
|
||||
width: global.getWidth(context),
|
||||
height: MediaQuery.of(context).size.height * 2 / 3,
|
||||
child: ListView.separated(
|
||||
separatorBuilder: (context, index) => const Divider(
|
||||
|
@ -227,11 +228,8 @@ class _ProfileViewState extends State<ProfileView> {
|
|||
return profileViewDisplay;
|
||||
} else if (index > 0 && index <= threads.length) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.fromLTRB(
|
||||
themes.defaultSeperatorHeight * 2,
|
||||
0,
|
||||
themes.defaultSeperatorHeight * 2,
|
||||
0),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: themes.defaultSeperatorHeight * 2),
|
||||
child: Thread(
|
||||
model: threads[index - 1],
|
||||
constrained: false,
|
||||
|
@ -244,6 +242,7 @@ class _ProfileViewState extends State<ProfileView> {
|
|||
),
|
||||
),
|
||||
]),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
@ -360,7 +359,6 @@ class ProfileViewDisplay extends StatelessWidget {
|
|||
List<Widget> c = [
|
||||
if (!(accountModel.header.endsWith("/headers/original/missing.png")))
|
||||
Image.network(
|
||||
width: global.getWidth(context),
|
||||
fit: BoxFit.fitWidth,
|
||||
accountModel.header,
|
||||
errorBuilder: (context, error, stackTrace) => const SizedBox.shrink(),
|
||||
|
@ -388,13 +386,9 @@ class ProfileViewDisplay extends StatelessWidget {
|
|||
),
|
||||
];
|
||||
|
||||
return Container(
|
||||
constraints: global.getConstraints(context),
|
||||
width: global.getWidth(context),
|
||||
child: Column(
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: c,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue