Increase chat details height, tweak headers

This commit is contained in:
Tommy Chow 2021-12-29 18:11:39 -05:00
parent 2248b0f3b2
commit 21069ce867
4 changed files with 10 additions and 3 deletions

View file

@ -95,7 +95,7 @@ abstract class _AuthBase with Store {
await _storage.write(key: 'USER_TOKEN', value: _token);
// Initialize the user with the new token.
user.init(headers: headersTwitch);
await user.init(headers: headersTwitch);
// Set the login status to logged in.
_isLoggedIn = true;

View file

@ -14,6 +14,7 @@ class ChatBottomBar extends StatelessWidget {
IconButton(
icon: Icon(Icons.adaptive.more),
onPressed: () => showModalBottomSheet(
isScrollControlled: true,
context: context,
builder: (_) => ChatDetails(
chatDetails: chatStore.chatDetailsStore,

View file

@ -17,7 +17,8 @@ class ChatDetails extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SafeArea(
child: Center(
child: SizedBox(
height: MediaQuery.of(context).size.height * 0.8,
child: Observer(
builder: (_) {
return Column(

View file

@ -3,11 +3,13 @@ import 'package:flutter/material.dart';
class SectionHeader extends StatelessWidget {
final String text;
final EdgeInsets padding;
final double fontSize;
const SectionHeader(
this.text, {
Key? key,
this.padding = const EdgeInsets.fromLTRB(10.0, 30.0, 10.0, 5.0),
this.fontSize = 18.0,
}) : super(key: key);
@override
@ -16,7 +18,10 @@ class SectionHeader extends StatelessWidget {
padding: padding,
child: Text(
text,
style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
style: TextStyle(
fontSize: fontSize,
fontWeight: FontWeight.bold,
),
),
);
}