aircloud_storage 0.0.1
aircloud_storage: ^0.0.1 copied to clipboard
AirCloud Storage is a Flutter package that provides cloud-based file storage, retrieval, and management functionalities. It integrates with modern UI components and supports persistent local storage, [...]
example/lib/main.dart
// Example usage of Airclod Storage package
import 'package:flutter/material.dart';
import 'package:aircloud_storage/aircloud_storage.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
final storage = AirCloudStorage();
await storage.initialize(username: 'your_username');
runApp(MyApp(storage: storage));
}
class MyApp extends StatelessWidget {
final AirCloudStorage storage;
const MyApp({Key? key, required this.storage}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Airclod Storage Example',
home: Scaffold(
appBar: AppBar(title: Text('Airclod Storage Demo')),
body: Center(
child: storage.airCloudImage(
imagecontainerwidth: 200,
imagecontainerheight: 200,
imageWidthSize: 180,
imageHeigthSize: 180,
url: 'https://your-image-url.com/image.jpg',
cachewidths: 180,
cacheheights: 180,
watermarktitle: 'AircloudTV',
watermarksubtitle: 'Live TV',
titlefortsize: 20,
subtitlefortsize: 14,
shimmername: 'Loading...',
shimmerwidth: 180,
shimmerheight: 180,
shimmerfontSize: 16,
shimmerbaseColor: Colors.grey,
shimmerhighlightColor: Colors.white,
borderRadius: true,
fit: BoxFit.cover,
),
),
),
);
}
}