webview_controller.dart 370 B

12345678910111213141516171819
  1. import 'package:flutter/material.dart';
  2. import 'package:get/get.dart';
  3. class WebviewController extends GetxController {
  4. final webUrl = "".obs;
  5. @override
  6. void onReady() {
  7. super.onReady();
  8. var map = Get.arguments;
  9. webUrl.value = map['url'];
  10. debugPrint("WebviewController initState webUrl:${webUrl.value}");
  11. }
  12. @override
  13. void onClose() {}
  14. }