8000 ui · SashaKryzh/Book-AI@77955d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
ui
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandrKryzhanovskyiLitslink committed Jan 23, 2022
1 parent 59d33c5 commit 77955d2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/pages/history_page/history_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class _Body extends StatelessWidget {
Widget build(BuildContext context) {
Widget loading() => Center(
child: JumpingDotsProgressIndicator(
fontSize: 30,
fontSize: 40,
dotSpacing: 2,
milliseconds: 200,
),
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/home_page/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ class _SliderMain extends StatelessWidget {
child: Column(
children: [
Flexible(
flex: 1,
flex: 2,
child: HeaderWidget(),
),
Expanded(
flex: 3,
flex: 5,
child: ChatWidget(),
),
],
Expand Down
5 changes: 5 additions & 0 deletions lib/pages/home_page/widgets/chat_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ class ChatWidget extends StatelessWidget {
onSendPressed: (message) =>
context.read<ChatCubit>().sendMessage(message.text),
scrollPhysics: AlwaysScrollableScrollPhysics(),
emptyState: Center(
child: Text(
'Send Hi to start a conversation',
),
),
theme: DefaultChatTheme(
primaryColor: Color(0xFFE46DCA),
),
Expand Down
20 changes: 14 additions & 6 deletions lib/pages/home_page/widgets/header_widget.dart
9E01
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,19 @@ class HeaderWidget extends StatelessWidget {
Align(
alignment: Alignment.center,
child: Container(
height: 120,
width: 120,
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(60),
margin: EdgeInsets.only(top: 5, bottom: 10),
child: AspectRatio(
aspectRatio: 1,
child: Center(
child: Container(
height: 120,
width: 120,
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(60),
),
),
),
),
),
),
Expand All @@ -35,7 +43,7 @@ class HeaderWidget extends StatelessWidget {
),
),
),
)
),
],
),
);
Expand Down

0 comments on commit 77955d2

Please sign in to comment.
0