implementation de cunning pour scanner l'image et la redresser
This commit is contained in:
@@ -118,8 +118,9 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
actions: [
|
||||
Consumer<AnalysisProvider>(
|
||||
builder: (context, provider, _) {
|
||||
if (provider.state != AnalysisState.success)
|
||||
if (provider.state != AnalysisState.success) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
return IconButton(
|
||||
icon: Icon(_isCalibrating ? Icons.check : Icons.tune),
|
||||
onPressed: () {
|
||||
@@ -647,7 +648,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
boxShadow: [
|
||||
if (!_isAtBottom)
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.2),
|
||||
color: Colors.black.withValues(alpha: 0.2),
|
||||
blurRadius: 6,
|
||||
offset: const Offset(0, 3),
|
||||
),
|
||||
@@ -1080,6 +1081,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
void _showAddShotHint(BuildContext context) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
@@ -1088,6 +1090,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
),
|
||||
);
|
||||
}
|
||||
*/
|
||||
|
||||
void _showClearConfirmation(BuildContext context, AnalysisProvider provider) {
|
||||
showDialog(
|
||||
@@ -1117,6 +1120,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
void _showAutoDetectDialog(BuildContext context, AnalysisProvider provider) {
|
||||
// Detection settings
|
||||
bool clearExisting = true;
|
||||
@@ -1315,6 +1319,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
),
|
||||
);
|
||||
}
|
||||
*/
|
||||
|
||||
void _showCalibratedDetectionDialog(
|
||||
BuildContext context,
|
||||
|
||||
Reference in New Issue
Block a user