|
|
|
@ -26,7 +26,14 @@ class StoryView extends StatelessWidget {
|
|
|
|
|
backgroundColor: Colors.blueGrey,
|
|
|
|
|
appBar: AppBar(
|
|
|
|
|
titleSpacing: 0,
|
|
|
|
|
title: ListTile(
|
|
|
|
|
leading: IconButton(
|
|
|
|
|
icon: const Icon(Icons.close),
|
|
|
|
|
onPressed: Navigator.of(context).pop,
|
|
|
|
|
),
|
|
|
|
|
title: AnimatedOpacity(
|
|
|
|
|
duration: const Duration(seconds: 1),
|
|
|
|
|
opacity: controller.isHold ? 0 : 1,
|
|
|
|
|
child: ListTile(
|
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
|
title: Text(
|
|
|
|
|
controller.title,
|
|
|
|
@ -61,6 +68,7 @@ class StoryView extends StatelessWidget {
|
|
|
|
|
name: controller.title,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
systemOverlayStyle: SystemUiOverlayStyle.light,
|
|
|
|
|
iconTheme: const IconThemeData(color: Colors.white),
|
|
|
|
|
elevation: 0,
|
|
|
|
@ -199,6 +207,9 @@ class StoryView extends StatelessWidget {
|
|
|
|
|
top: 4,
|
|
|
|
|
left: 4,
|
|
|
|
|
right: 4,
|
|
|
|
|
child: AnimatedOpacity(
|
|
|
|
|
duration: const Duration(seconds: 1),
|
|
|
|
|
opacity: controller.isHold ? 0 : 1,
|
|
|
|
|
child: SafeArea(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
@ -228,6 +239,44 @@ class StoryView extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (!controller.isOwnStory && currentEvent != null)
|
|
|
|
|
Positioned(
|
|
|
|
|
bottom: 16,
|
|
|
|
|
left: 16,
|
|
|
|
|
right: 16,
|
|
|
|
|
child: AnimatedOpacity(
|
|
|
|
|
duration: const Duration(seconds: 1),
|
|
|
|
|
opacity: controller.isHold ? 0 : 1,
|
|
|
|
|
child: SafeArea(
|
|
|
|
|
child: TextField(
|
|
|
|
|
onTap: controller.hold,
|
|
|
|
|
onEditingComplete: controller.unhold,
|
|
|
|
|
focusNode: controller.replyFocus,
|
|
|
|
|
controller: controller.replyController,
|
|
|
|
|
minLines: 1,
|
|
|
|
|
maxLines: 7,
|
|
|
|
|
onSubmitted: controller.replyAction,
|
|
|
|
|
textInputAction: TextInputAction.newline,
|
|
|
|
|
readOnly: controller.replyLoading,
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
|
hintText: L10n.of(context)!.reply,
|
|
|
|
|
prefixIcon: IconButton(
|
|
|
|
|
onPressed: controller.replyEmojiAction,
|
|
|
|
|
icon: const Icon(Icons.emoji_emotions_outlined),
|
|
|
|
|
),
|
|
|
|
|
suffixIcon: controller.replyLoading
|
|
|
|
|
? const CircularProgressIndicator.adaptive(
|
|
|
|
|
strokeWidth: 2)
|
|
|
|
|
: IconButton(
|
|
|
|
|
onPressed: controller.replyAction,
|
|
|
|
|
icon: const Icon(Icons.send_outlined),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (controller.isOwnStory &&
|
|
|
|
|
controller.currentSeenByUsers.isNotEmpty)
|
|
|
|
|
Positioned(
|
|
|
|
@ -248,7 +297,8 @@ class StoryView extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|