link_embeder 0.0.1 copy "link_embeder: ^0.0.1" to clipboard
link_embeder: ^0.0.1 copied to clipboard

ALink embeder for flutter, scrapes URLs from text and shows a Embed with metaData.

example/lib/main.dart

// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a MIT license that can be found  in the LICENSE file.

import 'package:flutter/src/widgets/container.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:link_embeder/link_embeder.dart';

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  // This widget is the root of your application.

  String Text =
      'Hey there! I just found out this cool link: https://flutter.dev';

  @override
  Widget build(BuildContext context) {
    return Container(
      //Provide context and text to the LinkEmbeder widget
      //The LinkEmbeder widget will return a widget with the embedded conte
      //(eg. title, description, image, etc.)
      child: LinkEmbeder().showEmbed(context, Text),
    );
  }
}
0
likes
130
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

ALink embeder for flutter, scrapes URLs from text and shows a Embed with metaData.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, metadata_fetch, url_launcher

More

Packages that depend on link_embeder