Skip to content

Commit

Permalink
fix: improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
AsCress committed Feb 4, 2025
1 parent 3ce71c9 commit b47cd9b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/view/widgets/channel_parameters_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class _ChannelParametersState extends State<ChannelParametersWidget> {
oscilloscopeStateProvider.setYAxisScale(1);
break;
case 7:
oscilloscopeStateProvider.setYAxisScale(500);
oscilloscopeStateProvider.setYAxisScale(0.5);
break;
case 8:
oscilloscopeStateProvider.setYAxisScale(160);
Expand Down
17 changes: 16 additions & 1 deletion lib/view/widgets/navigation_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class _NavDrawerState extends State<NavDrawer> {
@override
Widget build(BuildContext context) {
return Drawer(
width: MediaQuery.of(context).size.width * 0.75,
width: MediaQuery.of(context).orientation == Orientation.portrait
? MediaQuery.of(context).size.width * 0.75
: MediaQuery.of(context).size.width * 0.45,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.zero,
),
Expand Down Expand Up @@ -55,6 +57,7 @@ class _NavDrawerState extends State<NavDrawer> {
),
),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand Down Expand Up @@ -86,6 +89,7 @@ class _NavDrawerState extends State<NavDrawer> {
},
),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand All @@ -106,6 +110,7 @@ class _NavDrawerState extends State<NavDrawer> {
),
const Divider(),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand All @@ -125,6 +130,7 @@ class _NavDrawerState extends State<NavDrawer> {
},
),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand All @@ -144,6 +150,7 @@ class _NavDrawerState extends State<NavDrawer> {
},
),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand All @@ -164,6 +171,7 @@ class _NavDrawerState extends State<NavDrawer> {
),
const Divider(),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand All @@ -183,6 +191,7 @@ class _NavDrawerState extends State<NavDrawer> {
},
),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand All @@ -202,6 +211,7 @@ class _NavDrawerState extends State<NavDrawer> {
},
),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand All @@ -221,6 +231,7 @@ class _NavDrawerState extends State<NavDrawer> {
},
),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand All @@ -240,6 +251,7 @@ class _NavDrawerState extends State<NavDrawer> {
},
),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand All @@ -259,6 +271,7 @@ class _NavDrawerState extends State<NavDrawer> {
},
),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand All @@ -278,6 +291,7 @@ class _NavDrawerState extends State<NavDrawer> {
},
),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand All @@ -297,6 +311,7 @@ class _NavDrawerState extends State<NavDrawer> {
},
),
ListTile(
minLeadingWidth: 30,
focusColor: Colors.grey[350],
dense: true,
leading: Icon(
Expand Down

0 comments on commit b47cd9b

Please sign in to comment.