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