aliothx_angular 0.0.1
aliothx_angular: ^0.0.1 copied to clipboard
Package for web view interaction between angular and flutter.
example/lib/main.dart
import 'package:aliothx_angular/aliothx_angular.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const Example());
}
class Example extends StatelessWidget {
const Example({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: ElevatedButton(
onPressed: () {
AliothxWebviewRequest().request(
url: 'http://api.aliothx.net/restful/webview/request',
header: {'command': '1000', 'version': '1.0', 'language': 'kr'},
body: {
'package_name': 'com.dubhesoft.aliothv2',
'running_mode': 'DEV',
'webview_type': 'angular',
'random_id': ''
},
);
},
child: const Text('Webview Request'),
),
),
),
);
}
}