FLUTTER ECOSYSTEM

Pilaba/TopModalSheet

एक सरल ऊपरी मॉडल शीट फ्लटर के लिए

TopModalSheet प्रोजेक्ट कवर
Stars
8
Forks
11
अंतिम पुश (UTC)
31 जन॰ 2024
प्रोजेक्ट स्थिति
सक्रिय
Baldemar Alejandres GitHub avatar
GITHUB User

Baldemar Alejandres ↗

stay awhile and listen.

भाषाएँC++CMakeDartHTMLCSwiftKotlinObjective-C

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

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

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

मूल README

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

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

pub package

top_modal_sheet

Simple modal sheet that appears from the top of the screen

Installations

Add top_modal_sheet: ^2.1.0 in your pubspec.yaml dependencies. And import it:

import 'package:top_modal_sheet/top_modal_sheet.dart';

How to use

Simply call showModalTopSheet to display it

MaterialButton(
  color: Colors.white,
  elevation: 5,
  child: const Text("Show TopModal 1"),
  onPressed: () async {
    var value = await showTopModalSheet<String?>(context, DummyModal());
    setState(() { _topModalData = value; });
  },
)

For a more detail example please take a look at the example folder.

Example

https://raw.githubusercontent.com/Pilaba/TopModalSheet/master/example/screensshots/main_screen.png https://raw.githubusercontent.com/Pilaba/TopModalSheet/master/example/screensshots/top_modal.png https://raw.githubusercontent.com/Pilaba/TopModalSheet/master/example/screensshots/top_modal_result.png

-

If something is missing, feel free to open a ticket or contribute!