Skip to content

Commit

Permalink
Removed MouseRegion
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-kal committed May 7, 2023
1 parent 598d825 commit 2d68072
Showing 1 changed file with 17 additions and 22 deletions.
39 changes: 17 additions & 22 deletions lib/home.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:passie/password.dart';
Expand Down Expand Up @@ -110,26 +108,23 @@ class _HomePageState extends State<HomePage> {
SizedBox(
width: 150,
height: 40,
child: MouseRegion(
cursor: SystemMouseCursors.basic,
child: CartStepperInt(
size: 46,
value: l,
axis: Axis.horizontal,
didChangeCount: (value) {
setState(() {
l = value;
if (l < 5) {
// Make 5 the minimum
l = 5;
}
if (l > 100000) {
// Makes 100000 the maximum
l = 100000;
}
});
},
),
child: CartStepperInt(
size: 46,
value: l,
axis: Axis.horizontal,
didChangeCount: (value) {
setState(() {
l = value;
if (l < 5) {
// Make 5 the minimum
l = 5;
}
if (l > 100000) {
// Makes 100000 the maximum
l = 100000;
}
});
},
)),
const SizedBox(
width: 1,
Expand Down

0 comments on commit 2d68072

Please sign in to comment.