aws_s3_plugin 0.0.1 aws_s3_plugin: ^0.0.1 copied to clipboard
aws_s3_plugin.
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:aws_s3_plugin/aws_s3_plugin.dart' as aws;
void main() async {
WidgetsFlutterBinding.ensureInitialized();
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: TextButton(
onPressed: () {
aws.calculateMd5('123');
},
child: Text('发送EventChannel')),
),
),
);
}
}