smart_asset_analyser 0.1.4
smart_asset_analyser: ^0.1.4 copied to clipboard
A Flutter package to detect visually identical and similar assets using Deep Visual Embeddings (CLIP). Supports images, SVGs, and Lottie animations with interactive HTML reports.
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Example App',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Smart Asset Analyser Example'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const Text(
'This is an example Flutter app',
),
const SizedBox(height: 20),
const Text(
'Run the asset analyser to find duplicate assets:',
style: TextStyle(fontSize: 16),
),
const SizedBox(height: 10),
const Text(
'dart run smart_asset_analyser:analyse assets',
style: TextStyle(
fontSize: 14,
fontFamily: 'monospace',
backgroundColor: Colors.grey,
),
),
],
),
),
);
}
}