FLUTTER ECOSYSTEM

ayham95/Measured-Size

एक फ्लटर विजेट जो अपने बच्चे का आकार रनटाइम में गणना करता है।

मापा गया आकार प्रोजेक्ट कवर
Stars
15
Forks
10
अंतिम पुश (UTC)
27 मई 2022
प्रोजेक्ट स्थिति
सक्रिय
Ayham Orfali GitHub avatar
GITHUB User

Ayham Orfali ↗

Challenge lover, Creative thinker, Planner and a Do-er. A believer that anything can be solved with a cup of coffee.

Dubai, UAE
भाषाएँDartHTMLSwiftKotlinObjective-C

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम
  • flutter{"sdk":"flutter"}
  • flutter_testडेवलपमेंट{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

measured_size

A flutter widget that calculates the size of it's child in runtime.

Getting Started

MeasuredSize Calculated the size of it's child in runtime. All you have to do is to wrap your widget with MeasuredSize and listen to size changes.

https://raw.githubusercontent.com/ayham95/Measured-Size/HEAD/example.gif

Usage

Complete example

MeasuredSize(
              onChange: (Size size) {
                setState(() {
                  print(size);
                });
              },
              child: Text(
                '$_counter',
                style: Theme.of(context).textTheme.headline4,
              ),
            );

onChange will be called when the [Size] changes.

onChange will return the value ONLY once if it didn't change, and it will NOT return a value if it's equals to Size.zero