component_save_annotation 0.0.1
component_save_annotation: ^0.0.1 copied to clipboard
Useful for automating the documentation and tracking of widget components across projects.
import 'package:example/custom_button.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
Future<void> main() async {
await Firebase.initializeApp();
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: Center(
child: CustomButton(label: 'Hello World'),
),
),
);
}
}