Skip to content

Commit

Permalink
Apply new text style for daft chat
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev authored and hoangdat committed Sep 7, 2023
1 parent e5afb52 commit a0d0baf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pages/chat_draft/draft_chat_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class DraftChatView extends StatelessWidget {
},
child: Scaffold(
appBar: AppBar(
toolbarHeight: DraftChatViewStyle.toolbarHeight,
toolbarHeight: DraftChatViewStyle.toolbarHeight(context),
surfaceTintColor: Colors.transparent,
automaticallyImplyLeading: false,
title: Row(
Expand Down
7 changes: 6 additions & 1 deletion lib/pages/chat_draft/draft_chat_view_style.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import 'package:fluffychat/config/themes.dart';
import 'package:fluffychat/di/global/get_it_initializer.dart';
import 'package:fluffychat/utils/responsive/responsive_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';

class DraftChatViewStyle {
static const double toolbarHeight = 56;
static ResponsiveUtils responsive = getIt.get<ResponsiveUtils>();

static double toolbarHeight(BuildContext context) =>
responsive.isMobile(context) ? 56 : 80;

static BoxConstraints get containerMaxWidthConstraints =>
const BoxConstraints(maxWidth: FluffyThemes.columnWidth * 2.5);
Expand Down

0 comments on commit a0d0baf

Please sign in to comment.