finally fix visual bug
This commit is contained in:
parent
99e9294ece
commit
8bec897d52
|
@ -117,7 +117,9 @@ class _FullPostViewState extends State<FullPostView> {
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
SelectableText(
|
SelectableText(
|
||||||
"${"post-found-on".i18n()} $idsChecked ${idsChecked == 1 ? "instance".i18n() : "instances".i18n()}"),
|
"${"post-found-on".i18n()} $idsChecked ${idsChecked == 1 ? "instance".i18n() : "instances".i18n()}",
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
const LinearProgressIndicator(),
|
const LinearProgressIndicator(),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@ -177,7 +179,7 @@ class _FullPostViewState extends State<FullPostView> {
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
constraints: BoxConstraints(
|
constraints: BoxConstraints(
|
||||||
maxHeight: MediaQuery.of(context).size.height,
|
maxHeight: MediaQuery.of(context).size.height * 2 / 3,
|
||||||
maxWidth: global.getConstraints(context).maxWidth),
|
maxWidth: global.getConstraints(context).maxWidth),
|
||||||
width: global.getWidth(context),
|
width: global.getWidth(context),
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
|
|
|
@ -172,59 +172,62 @@ class _ProfileViewState extends State<ProfileView> {
|
||||||
),
|
),
|
||||||
contentPadding: const EdgeInsets.all(0),
|
contentPadding: const EdgeInsets.all(0),
|
||||||
children: [
|
children: [
|
||||||
loading
|
Column(children: [
|
||||||
? Column(
|
loading
|
||||||
children: [
|
? Column(
|
||||||
SelectableText(
|
children: [
|
||||||
"${"found-account-on".i18n()} ${identities.length} ${identities.length <= 1 ? "instance" : "instances".i18n()}"),
|
SelectableText(
|
||||||
const LinearProgressIndicator(),
|
"${"found-account-on".i18n()} ${identities.length} ${identities.length <= 1 ? "instance" : "instances".i18n()}"),
|
||||||
],
|
const LinearProgressIndicator(),
|
||||||
)
|
],
|
||||||
: Row(
|
)
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
: Row(
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
DropdownButtonHideUnderline(
|
children: [
|
||||||
child: DropdownButton(
|
DropdownButtonHideUnderline(
|
||||||
isExpanded: false,
|
child: DropdownButton(
|
||||||
alignment: Alignment.center,
|
isExpanded: false,
|
||||||
iconEnabledColor: Theme.of(context).colorScheme.onSurface,
|
alignment: Alignment.center,
|
||||||
value: activeIdentity,
|
iconEnabledColor:
|
||||||
items: dmenuItems,
|
Theme.of(context).colorScheme.onSurface,
|
||||||
onChanged: (value) {
|
value: activeIdentity,
|
||||||
setState(() {
|
items: dmenuItems,
|
||||||
activeIdentity = value.toString();
|
onChanged: (value) {
|
||||||
});
|
setState(() {
|
||||||
reloadPosts();
|
activeIdentity = value.toString();
|
||||||
},
|
});
|
||||||
|
reloadPosts();
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
Container(
|
||||||
Container(
|
constraints: global.getConstraints(context),
|
||||||
constraints: global.getConstraints(context),
|
width: global.getWidth(context) +
|
||||||
width: global.getWidth(context) +
|
MediaQuery.of(context).size.width * 0.2,
|
||||||
MediaQuery.of(context).size.width * 0.2,
|
height: MediaQuery.of(context).size.height * 2 / 3,
|
||||||
height: MediaQuery.of(context).size.height * 2 / 3,
|
child: ListView.builder(
|
||||||
child: ListView.builder(
|
controller: _scrollController,
|
||||||
controller: _scrollController,
|
itemCount: threads.length + 2,
|
||||||
itemCount: threads.length + 2,
|
itemBuilder: (context, index) {
|
||||||
itemBuilder: (context, index) {
|
if (index == 0) {
|
||||||
if (index == 0) {
|
return profileViewDisplay;
|
||||||
return profileViewDisplay;
|
} else if (index > 0 && index <= threads.length) {
|
||||||
} else if (index > 0 && index <= threads.length) {
|
return Padding(
|
||||||
return Padding(
|
padding: const EdgeInsets.all(8.0),
|
||||||
padding: const EdgeInsets.all(8.0),
|
child: Thread(
|
||||||
child: Thread(
|
model: threads[index - 1],
|
||||||
model: threads[index - 1],
|
constrained: false,
|
||||||
constrained: false,
|
),
|
||||||
),
|
);
|
||||||
);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return const LoadingBox();
|
return const LoadingBox();
|
||||||
},
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
]),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -162,7 +162,7 @@ ThemeData getTheme(CustomColors colors) {
|
||||||
primaryIconTheme: const IconThemeData(size: 24),
|
primaryIconTheme: const IconThemeData(size: 24),
|
||||||
hoverColor: colors.colorScheme.background,
|
hoverColor: colors.colorScheme.background,
|
||||||
shadowColor: colors.colorScheme.surface,
|
shadowColor: colors.colorScheme.surface,
|
||||||
focusColor: colors.hintColor,
|
focusColor: colors.colorScheme.background,
|
||||||
indicatorColor: colors.hintColor,
|
indicatorColor: colors.hintColor,
|
||||||
disabledColor: colors.hintColor,
|
disabledColor: colors.hintColor,
|
||||||
unselectedWidgetColor: colors.hintColor,
|
unselectedWidgetColor: colors.hintColor,
|
||||||
|
|
Loading…
Reference in New Issue