0

So I want users to be able to fill the form and send an email like the typical website Contact forms we have.

I have tried several libraries on pub dev, but non seems to do the job right, most only focus on IOS and Android.

4

1 回答 1

1

使用这个插件

发布规范.yaml

dependencies:
  url_launcher: ^5.7.1

进口

import 'package:url_launcher/url_launcher.dart';

推出

_launchURL() async {
  const url = 'https://flutter.dev';
  if (await canLaunch(url)) {
    await launch(url);
  } else {
    throw 'Could not launch $url';
  }
}

URL 方案

在此处输入图像描述

于 2020-09-23T18:23:03.063 回答