rx_go 0.0.7+1 copy "rx_go: ^0.0.7+1" to clipboard
rx_go: ^0.0.7+1 copied to clipboard

A Weblink View Creator.

rx_go: A Weblink View Creator #

Pub Version

rx_go is a Dart package that allows you to easily open a web link and display it using a webview or as a bottom sheet. This package provides a simple API to open URLs in your Dart or Flutter projects.

Features #

  • Open Weblink in a webview.
  • Open Weblink as a bottom sheet.

Getting Started #

To use this package, add rx_go as a dependency in your pubspec.yaml file:

dependencies:
  rx_go: ^1.0.0

Then import the package in your Dart code:

import 'package:rx_go/rx_go.dart';

Usage #

Here's a basic example of how to use rx_go to open a web link:

import 'package:flutter/material.dart';
import 'package:rx_go/rx_go.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('rx_go Package Example'),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              const webview = RxGo.open("https://google.com");
             
              Future.delayed(const Duration(seconds: 60), () {
                webview.close("it worked");
              });
              final data = await webview.future;
              // Do something with the data if needed.
            },
            child: Text('Open Google'),
          ),
        ),
      ),
    );
  }
}

This example demonstrates how to open the Google homepage using the open method and close the webview immediately after opening it.

Additional Information #

Use this package to easily open web links in your Dart and Flutter applications. It provides a convenient way to display external content to your users.

We hope you find rx_go helpful in your projects. If you encounter any issues or have suggestions for improvements, please feel free to contribute or report them on the GitHub repository. Happy coding!

0
likes
105
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

A Weblink View Creator.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

built_collection, flutter, get, google_fonts, url_launcher, uuid, webview_flutter

More

Packages that depend on rx_go