Write to the terminal from the project directory.
flutter pub add weaccessvoid main() async {
...
await WeAccess.init(apiKey: 'YOUR_API_KEY');
runApp(const App());
}class MyPage extends StatelessWidget {
const MyPage({super.key});
final WePhotoController _wePhotoController = WePhotoController();
@override
Widget build(BuildContext context) {
return Column(
children: [
WePhoto(
controller: controller,
image: NetworkImage(
'image_url',
),
),
],
);
}
}