Rearrange profile buttons so that (un)follow and (un)block are on separate line

codemagic-setup
Hank Grabowski 2023-11-16 16:24:48 -05:00
rodzic 6ede657c57
commit 3b1575a64f
1 zmienionych plików z 12 dodań i 5 usunięć

Wyświetl plik

@ -83,11 +83,6 @@ class _UserProfileScreenState extends State<UserProfileScreen> {
spacing: 10.0,
runSpacing: 10.0,
children: [
if (notMyProfile) ...[
buildConnectionStatusToggle(
context, profile, connectionManager),
buildBlockToggle(context, profile, blocksManager),
],
ElevatedButton(
onPressed: () => context.pushNamed(
ScreenPaths.userPosts,
@ -102,6 +97,18 @@ class _UserProfileScreenState extends State<UserProfileScreen> {
],
),
const VerticalPadding(),
Wrap(
spacing: 10.0,
runSpacing: 10.0,
children: [
if (notMyProfile) ...[
buildConnectionStatusToggle(
context, profile, connectionManager),
buildBlockToggle(context, profile, blocksManager),
],
],
),
const VerticalPadding(),
HtmlTextViewerControl(
content: profile.note,
onTapUrl: (url) async {