mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 16:28:40 +00:00
fix #83
This commit is contained in:
parent
8c8445391c
commit
f6c6b0fafe
3 changed files with 37 additions and 8 deletions
|
|
@ -33,7 +33,35 @@ class BestFriendsSelector extends StatelessWidget {
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
HeadLineComponent(context.lang.shareImageBestFriends),
|
Row(
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: HeadLineComponent(context.lang.shareImageBestFriends),
|
||||||
|
),
|
||||||
|
if (!isRealTwonly)
|
||||||
|
GestureDetector(
|
||||||
|
onTap: () {
|
||||||
|
for (final user in users) {
|
||||||
|
updateStatus(user.userId, true);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
child: Container(
|
||||||
|
padding: EdgeInsets.symmetric(horizontal: 7, vertical: 4),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Theme.of(context).colorScheme.outline.withAlpha(50),
|
||||||
|
boxShadow: [
|
||||||
|
BoxShadow(
|
||||||
|
blurRadius: 10.9,
|
||||||
|
color: Color.fromRGBO(0, 0, 0, 0.1),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
borderRadius: BorderRadius.circular(8.0),
|
||||||
|
),
|
||||||
|
child: Text("Alle auswählen", style: TextStyle(fontSize: 10)),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
Column(
|
Column(
|
||||||
spacing: 8,
|
spacing: 8,
|
||||||
children: List.generate(
|
children: List.generate(
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class HeadLineComponent extends StatelessWidget {
|
||||||
padding: EdgeInsets.symmetric(horizontal: 4.0, vertical: 10),
|
padding: EdgeInsets.symmetric(horizontal: 4.0, vertical: 10),
|
||||||
child: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
style: TextStyle(fontSize: 18),
|
style: TextStyle(fontSize: 17),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,13 @@ class _ShareImageView extends State<ShareImageView> {
|
||||||
padding: EdgeInsets.only(bottom: 40, left: 10, top: 20, right: 10),
|
padding: EdgeInsets.only(bottom: 40, left: 10, top: 20, right: 10),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
if (showRealTwonlyWarning)
|
||||||
|
Text(
|
||||||
|
context.lang.shareImageAllTwonlyWarning,
|
||||||
|
style: TextStyle(color: Colors.orange, fontSize: 13),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
if (showRealTwonlyWarning) const SizedBox(height: 10),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10),
|
padding: EdgeInsets.symmetric(horizontal: 10),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
|
@ -170,12 +177,6 @@ class _ShareImageView extends State<ShareImageView> {
|
||||||
context, context.lang.searchUsernameInput),
|
context, context.lang.searchUsernameInput),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (showRealTwonlyWarning) const SizedBox(height: 10),
|
|
||||||
if (showRealTwonlyWarning)
|
|
||||||
Text(
|
|
||||||
context.lang.shareImageAllTwonlyWarning,
|
|
||||||
style: TextStyle(color: Colors.orange),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
BestFriendsSelector(
|
BestFriendsSelector(
|
||||||
users: _bestFriends,
|
users: _bestFriends,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue