matrix_image 3.0.1 copy "matrix_image: ^3.0.1" to clipboard
matrix_image: ^3.0.1 copied to clipboard

discontinued

ImageProvider for images that are retrieved from a Matrix homeserver

example/main.dart

// Copyright (C) 2019  Wilko Manger
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

import 'package:flutter/material.dart';
import 'package:matrix_image/matrix_image.dart';
import 'package:matrix_sdk/matrix_sdk.dart';
import 'package:url/url.dart';

class SomeWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Image(
      image: MatrixImage(
        Url.parse('mxc://pattle.im/Asd34Di83nikjs'),
        homeserver: Homeserver(Url.parse('https://pattle.im')),
      ),
    );
  }
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

ImageProvider for images that are retrieved from a Matrix homeserver

Repository
View/report issues

License

MPL-2.0 (LICENSE)

Dependencies

flutter, flutter_cache_manager, matrix_sdk, path, path_provider, url

More

Packages that depend on matrix_image