🐛 Bug fixes
This commit is contained in:
parent
7633619edd
commit
7e4fa47d00
@ -84,7 +84,6 @@ class _PersonalizeScreenWidgetState extends State<PersonalizeScreenWidget> {
|
||||
getRequestUri('passport', '/api/users/me'),
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
body: jsonEncode({
|
||||
'name': _usernameController.value.text,
|
||||
'nick': _nicknameController.value.text,
|
||||
'description': _descriptionController.value.text,
|
||||
'first_name': _firstNameController.value.text,
|
||||
@ -117,7 +116,7 @@ class _PersonalizeScreenWidgetState extends State<PersonalizeScreenWidget> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(vertical: 24, horizontal: 32),
|
||||
padding: const EdgeInsets.symmetric(vertical: 28, horizontal: 32),
|
||||
child: Column(
|
||||
children: [
|
||||
_isSubmitting ? const LinearProgressIndicator().animate().scaleX() : Container(),
|
||||
@ -126,6 +125,7 @@ class _PersonalizeScreenWidgetState extends State<PersonalizeScreenWidget> {
|
||||
Flexible(
|
||||
flex: 1,
|
||||
child: TextField(
|
||||
readOnly: true,
|
||||
controller: _usernameController,
|
||||
decoration: InputDecoration(
|
||||
border: const OutlineInputBorder(),
|
||||
|
@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_animate/flutter_animate.dart';
|
||||
import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:solian/models/channel.dart';
|
||||
import 'package:solian/models/message.dart';
|
||||
import 'package:solian/models/pagination.dart';
|
||||
import 'package:solian/providers/auth.dart';
|
||||
@ -200,7 +201,13 @@ class _ChatScreenWidgetState extends State<ChatScreenWidget> {
|
||||
);
|
||||
|
||||
return FutureBuilder(
|
||||
future: _chat.fetchChannel(widget.alias),
|
||||
future: (() async {
|
||||
final res = await Future.wait([
|
||||
_chat.fetchOngoingCall(widget.alias),
|
||||
_chat.fetchChannel(widget.alias),
|
||||
]);
|
||||
return res[0] as Channel;
|
||||
})(),
|
||||
builder: (context, snapshot) {
|
||||
if (!snapshot.hasData || snapshot.data == null) {
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
|
Loading…
Reference in New Issue
Block a user