cookie_web_view 0.2.1 cookie_web_view: ^0.2.1 copied to clipboard
A plugin for listen real web view cookie. You can use the plugin for the auth by social media. Originaly the plugin created for https://github.com/jordan1997/radio-t-client
import 'package:cookie_web_view/cookie_web_view.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: CookieWebView(
onWebViewCreated: (CookieWebViewController controller) {
controller.openUrl("https://google.com");
controller.onCookieChange.listen((data) {
data.forEach((key, value) => print('key : $key, value : $value'));
});
},
),
),
);
}
}