FLUTTER ECOSYSTEM

snj07/flutter_show_more_text_popup

ポップアップにテキストを表示するためのFlutterプラグイン:https://pub.dev/packages/show_more_text_popup

flutter_show_more_text_popup のプロジェクト画像
Stars
42
Forks
13
最終プッシュ(UTC)
2021/06/01
プロジェクト状態
公開中
Sanjay Sharma GitHub avatar
GITHUB User

Sanjay Sharma ↗

Software Developer

Bangalore, India公式サイト ↗
言語DartKotlinHTMLRubySwiftObjective-C

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 2 件
  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

flutter_show_more_text_popup

Flutter widget to show text in popup or overlay container

Installation

Add this to your package's pubspec.yaml file

dependencies:
  ...
  show_more_text_popup: ^latest-version

Usage

First import show_more_text_popup.dart

import 'package:show_more_text_popup/show_more_text_popup.dart';
ShowMoreTextPopup popup = ShowMoreTextPopup(context,
        text: text,
        textStyle: TextStyle(color: Colors.black),
        height: 200,
        width: 100,
        backgroundColor: Color(0xFF16CCCC),
        padding: EdgeInsets.all(4.0),
        borderRadius: BorderRadius.circular(10.0)
);

popup.show(
  widgetKey: key,
);

Screenshots

https://raw.githubusercontent.com/snj07/flutter_show_more_text_popup/master/screenshots/show_more_text_popup_demo.gif