implementation de cunning pour scanner l'image et la redresser

This commit is contained in:
2026-02-13 22:18:35 +01:00
parent 91fcd931e8
commit 7e55c52ae7
12 changed files with 273 additions and 104 deletions

View File

@@ -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,