Skip to content

Commit

Permalink
🔊 Updated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
LNA-DEV committed Jul 1, 2023
1 parent 6a31b09 commit 22361ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class _NavigationState extends State<Navigation> {
General.logger.d("Width: $width. Height: $height.");

if (width > height && width >= 600) {
General.logger.d("Using landscape navigation.");

EdgeInsets paddings = EdgeInsets.fromLTRB(width * 0.1, 0, width * 0.1, 0);
List<Widget> screens = createScreens(paddings);
List<SideMenuItem> sideMenuItems = createSideMenuItems();
Expand Down Expand Up @@ -93,6 +95,8 @@ class _NavigationState extends State<Navigation> {
floatingActionButton: widget.floatingActionButton,
);
} else {
General.logger.d("Using portrait navigation.");

List screens = widget.inputScreens;

return Scaffold(
Expand Down Expand Up @@ -138,6 +142,8 @@ class _NavigationState extends State<Navigation> {

var counter = 0;
for (var element in widget.bottomNavigationBarItems) {
if (element.label == null) General.logger.w("Label is null!");

sideMenuItems.add(
SideMenuItem(
priority: counter,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fedodo_general
description: A flutter package which contains general components of the Fedodo-UIs.
version: 1.6.2
version: 1.6.3
homepage: https://fedodo.org

environment:
Expand Down

0 comments on commit 22361ef

Please sign in to comment.