mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-08 04:59:29 +01:00
Merge branch 'krille/better-fabs' into 'main'
chore: Improve FABs See merge request famedly/fluffychat!655
This commit is contained in:
commit
690cc7bf29
@ -2685,5 +2685,7 @@
|
|||||||
"body": {}
|
"body": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"whoCanSeeMyStoriesDesc": "Please note that people can see and contact each other in your story."
|
"whoCanSeeMyStoriesDesc": "Please note that people can see and contact each other in your story.",
|
||||||
|
"whatIsGoingOn": "What is going on?",
|
||||||
|
"addDescription": "Add description"
|
||||||
}
|
}
|
||||||
|
@ -101,8 +101,9 @@ class AddStoryView extends StatelessWidget {
|
|||||||
onChanged: controller.updateColors,
|
onChanged: controller.updateColors,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
hintText:
|
hintText: controller.hasMedia
|
||||||
controller.hasMedia ? 'Add description' : 'How are you?',
|
? L10n.of(context)!.addDescription
|
||||||
|
: L10n.of(context)!.whatIsGoingOn,
|
||||||
filled: false,
|
filled: false,
|
||||||
hintStyle: TextStyle(
|
hintStyle: TextStyle(
|
||||||
color: Colors.white.withOpacity(0.5),
|
color: Colors.white.withOpacity(0.5),
|
||||||
@ -116,7 +117,6 @@ class AddStoryView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
|
|
||||||
floatingActionButton:
|
floatingActionButton:
|
||||||
controller.controller.text.isEmpty && !controller.hasMedia
|
controller.controller.text.isEmpty && !controller.hasMedia
|
||||||
? null
|
? null
|
||||||
@ -125,7 +125,7 @@ class AddStoryView extends StatelessWidget {
|
|||||||
label: Text(L10n.of(context)!.publish),
|
label: Text(L10n.of(context)!.publish),
|
||||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
foregroundColor: Theme.of(context).colorScheme.onSurface,
|
foregroundColor: Theme.of(context).colorScheme.onSurface,
|
||||||
icon: const Icon(Icons.check_circle),
|
icon: const Icon(Icons.send_rounded),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -113,13 +113,12 @@ class _InviteStoryPageState extends State<InviteStoryPage> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
|
|
||||||
floatingActionButton: FloatingActionButton.extended(
|
floatingActionButton: FloatingActionButton.extended(
|
||||||
onPressed: _inviteAction,
|
onPressed: _inviteAction,
|
||||||
label: Text(L10n.of(context)!.publish),
|
label: Text(L10n.of(context)!.publish),
|
||||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
foregroundColor: Theme.of(context).colorScheme.onSurface,
|
foregroundColor: Theme.of(context).colorScheme.onSurface,
|
||||||
icon: const Icon(Icons.upload_outlined),
|
icon: const Icon(Icons.send_rounded),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -206,18 +206,13 @@ class ChatListView extends StatelessWidget {
|
|||||||
Expanded(child: _ChatListViewBody(controller)),
|
Expanded(child: _ChatListViewBody(controller)),
|
||||||
]),
|
]),
|
||||||
floatingActionButton: selectMode == SelectMode.normal
|
floatingActionButton: selectMode == SelectMode.normal
|
||||||
? controller.scrolledToTop
|
|
||||||
? FloatingActionButton.extended(
|
? FloatingActionButton.extended(
|
||||||
|
isExtended: controller.scrolledToTop,
|
||||||
onPressed: () =>
|
onPressed: () =>
|
||||||
VRouter.of(context).to('/newprivatechat'),
|
VRouter.of(context).to('/newprivatechat'),
|
||||||
icon: const Icon(CupertinoIcons.chat_bubble),
|
icon: const Icon(CupertinoIcons.chat_bubble),
|
||||||
label: Text(L10n.of(context).newChat),
|
label: Text(L10n.of(context).newChat),
|
||||||
)
|
)
|
||||||
: FloatingActionButton(
|
|
||||||
onPressed: () =>
|
|
||||||
VRouter.of(context).to('/newprivatechat'),
|
|
||||||
child: const Icon(CupertinoIcons.chat_bubble),
|
|
||||||
)
|
|
||||||
: null,
|
: null,
|
||||||
bottomNavigationBar: Column(
|
bottomNavigationBar: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
Loading…
Reference in New Issue
Block a user