-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ekran skanowanie guzik dotacji #146
base: feature/redesing
Are you sure you want to change the base?
Conversation
D3bi7
commented
Dec 18, 2024
lib/pages/scan/remote_button.dart
Outdated
child: GestureDetector( | ||
onTap: () { | ||
setState(() { | ||
_isVisible = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Po to robiliśmy zmiany w ScanBlocu, żeby użyć tu bloka i na podstawie ScanState decydować czy ten guzik ma być widoczny czy nie.
backgroundColor: WidgetStateProperty.all<Color>(Colors.red), | ||
foregroundColor: WidgetStateProperty.all<Color>(Colors.white), | ||
return Container( | ||
width: 328, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nie ustalamy ręcznie szerokości. Ustawiamy odpowiednio paddingi by reszta się sama dopasowała do ekranu.