Buscar pacotes, repositórios e categorias de apps

Repositório GitHubdebuggerx01/rect_getter

rect_getter

Um widget fornece uma maneira simples de obter informações sobre o retângulo da criança após o renderização.

Capa do projeto rect_getter
Estrelas
59
Forks
6
Último push (UTC)
8 de jun. de 2023
Status do projeto
Ativo

README original

Texto original em inglês. Visite o GitHub para a versão atual.

rect_getter

A widget provide a simple way to get child's rectangle information after rendered.

Usage

To use this plugin, add rect_getter as a dependency in your pubspec.yaml file.

Example
// Import package
import 'package:rect_getter/rect_getter.dart';

// Instantiate it

var globalKey = RectGetter.createGlobalKey();
var rectGetter = RectGetter(
    key: globalKey,
    child: _child,
);

or

var rectGetter = RectGetter.defaultKey(
    child: _child,
);


// and add it to your layout .

// then you can get rect by

Rect rect = rectGetter.getRect();

or

Rect rect = RectGetter.getRectFromKey(globalKey);


Read More : 利用RectGetter组件获取控件位置尺寸实现的几个高级效果和功能

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

debuggerx01 GitHub avatar
Autor no GitHub

debuggerx01 ↗

LinguagensDartC++HTMLObjective-CCShellSwiftKotlin

Categorias

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens

  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗