Skip to content

Commit

Permalink
add moscot
Browse files Browse the repository at this point in the history
  • Loading branch information
singularity-s0 committed Jun 6, 2024
1 parent 2f5bcc2 commit 4260bb6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Binary file added assets/images/moscot.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions lib/views/chat_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,7 @@ class _ChatViewState extends State<ChatView> {
appBar: AppBar(
centerTitle: true,
automaticallyImplyLeading: false,
title: shouldUseLargeLogo
? const SizedBox()
: LocalHero(
tag: "MossLogo",
child: Image.asset('assets/images/logo.webp', height: 56)),
title: const SizedBox(),
surfaceTintColor: Colors.transparent,
),
body: Chat(
Expand All @@ -310,6 +306,11 @@ class _ChatViewState extends State<ChatView> {
inputClearMode: InputClearMode.never,
sendButtonVisibilityMode: SendButtonVisibilityMode.always),
theme: chatTheme,
listTopWidget: LocalHero(
tag: "MossLogo",
child: Image.asset('assets/images/moscot.gif',
height: MediaQuery.of(context).size.height / 4),
),
emptyState: shouldUseLargeLogo
? const MossIntroWidget(
heroTag: "MossLogo",
Expand Down Expand Up @@ -491,8 +492,7 @@ class _ChatViewState extends State<ChatView> {
icon: const Icon(Icons.copy, size: 16),
padding: EdgeInsets.zero,
onPressed: () async {
FlutterClipboard.copy(
_records.last.response);
FlutterClipboard.copy(_records.last.response);
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(
Expand Down
2 changes: 1 addition & 1 deletion lib/views/components/intro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class MossIntroWidget extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: 48.0),
child: LocalHero(
tag: heroTag,
child: Image.asset("assets/images/logo.webp")),
child: Image.asset('assets/images/moscot.gif')),
),
),
),
Expand Down

0 comments on commit 4260bb6

Please sign in to comment.