Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 017f290
Author: Erdem Yerebasmaz <[email protected]>
Date:   Tue Dec 10 18:34:02 2024 +0300

    Remove theme switcher from navigation drawer

commit d7da10a
Author: Erdem Yerebasmaz <[email protected]>
Date:   Tue Dec 10 18:33:42 2024 +0300

    Remove Breez icon from app bar
  • Loading branch information
erdemyerebasmaz committed Dec 11, 2024
1 parent cff17d5 commit 75480a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 68 deletions.
15 changes: 0 additions & 15 deletions lib/routes/home/widgets/home_app_bar/home_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,6 @@ class HomeAppBar extends AppBar {
),
onPressed: () => scaffoldKey.currentState?.openDrawer(),
),
title: IconButton(
padding: EdgeInsets.zero,
icon: SvgPicture.asset(
'assets/images/liquid-logo-color.svg',
colorFilter: ColorFilter.mode(
themeData.appBarTheme.actionsIconTheme!.color!,
BlendMode.srcATop,
),
),
iconSize: 64,
onPressed: () => scaffoldKey.currentState?.openDrawer(),
),
iconTheme: const IconThemeData(
color: Color.fromARGB(255, 0, 133, 251),
),
backgroundColor: themeData.customData.dashboardBgColor,
systemOverlayStyle: themeData.isLightTheme
? themeData.appBarTheme.systemOverlayStyle!.copyWith(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import 'package:l_breez/models/user_profile.dart';
import 'package:l_breez/routes/routes.dart';
import 'package:l_breez/theme/theme.dart';
import 'package:l_breez/widgets/widgets.dart';
import 'package:theme_provider/theme_provider.dart';

const double _kBreezBottomSheetHeight = 60.0;

Expand Down Expand Up @@ -177,8 +176,10 @@ class BreezNavigationDrawer extends StatelessWidget {
final BreezTranslations texts = context.texts();

final List<Widget> drawerHeaderContent = <Widget>[];
drawerHeaderContent.add(_buildThemeSwitch(context, user));
drawerHeaderContent
..add(
const SizedBox(height: 42.0),
)
..add(
Row(
children: <Widget>[
Expand Down Expand Up @@ -257,57 +258,6 @@ class _ListDivider extends StatelessWidget {
}
}

GestureDetector _buildThemeSwitch(
BuildContext context,
UserProfileSettings user,
) {
final ThemeData themeData = Theme.of(context);
return GestureDetector(
onTap: () => ThemeProvider.controllerOf(context).nextTheme(),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Padding(
padding: const EdgeInsets.only(
top: 10,
right: 16.0,
),
child: Container(
width: 64,
padding: const EdgeInsets.all(4),
decoration: const ShapeDecoration(
shape: StadiumBorder(),
color: themeSwitchBgColor,
),
child: Row(
children: <Widget>[
Image.asset(
'assets/icons/ic_lightmode.png',
height: 24,
width: 24,
color: themeData.lightThemeSwitchIconColor,
),
const SizedBox(
height: 20,
width: 8,
child: VerticalDivider(
color: Colors.white30,
),
),
ImageIcon(
const AssetImage('assets/icons/ic_darkmode.png'),
color: themeData.darkThemeSwitchIconColor,
size: 24.0,
),
],
),
),
),
],
),
);
}

Widget _actionTile(
DrawerItemConfig action,
BuildContext context,
Expand Down

0 comments on commit 75480a3

Please sign in to comment.