mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-20 11:09:25 +01:00
design: Nicer first loading design
This commit is contained in:
parent
43ab216714
commit
3993984a2b
@ -1233,6 +1233,11 @@
|
|||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
|
"yourChatsAreBeingSynced": "Your chats are being synced...",
|
||||||
|
"@yourChatsAreBeingSynced": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
"pleaseChoose": "Please choose",
|
"pleaseChoose": "Please choose",
|
||||||
"@pleaseChoose": {
|
"@pleaseChoose": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 36 KiB |
@ -214,7 +214,20 @@ class ChatListView extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return Center(
|
return Center(
|
||||||
child: CircularProgressIndicator(),
|
child: Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
|
Image.asset(
|
||||||
|
'assets/private_chat_wallpaper.png',
|
||||||
|
width: 100,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
L10n.of(context)
|
||||||
|
.yourChatsAreBeingSynced,
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -40,7 +40,7 @@ class NewGroupView extends StatelessWidget {
|
|||||||
onChanged: controller.setPublicGroup,
|
onChanged: controller.setPublicGroup,
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Image.asset('assets/new_group_wallpaper.png'),
|
child: Image.asset('assets/private_chat_wallpaper.png'),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -48,10 +48,11 @@ class _ConnectionStatusHeaderState extends State<ConnectionStatusHeader> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return AnimatedContainer(
|
return AnimatedContainer(
|
||||||
duration: Duration(milliseconds: 300),
|
duration: Duration(milliseconds: 250),
|
||||||
|
curve: Curves.bounceInOut,
|
||||||
height: _connected ? 0 : 36,
|
height: _connected ? 0 : 36,
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(color: Theme.of(context).secondaryHeaderColor),
|
||||||
padding: EdgeInsets.symmetric(horizontal: 12),
|
padding: EdgeInsets.symmetric(horizontal: 12),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
Loading…
Reference in New Issue
Block a user