विस्तारयोग्य बॉटम बार
Flutter SDK के लिए विस्तारयोग्य बॉटम ऐप बार विजेट
- स्टार
- 108
- फ़ोर्क
- 29
- अंतिम पुश (UTC)
- 13 अग॰ 2024
- प्रोजेक्ट स्थिति
- आर्काइव
मूल README
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
ExpandableBottomAppBar
Animatable bottom app bar with expandable sheet
Preview
Getting Started
Add the plugin:
dependencies:
...
expandable_bottom_bar: any
Basic Usage
Adding the widget
bottomNavigationBar: BottomExpandableAppBar(
// Provide the bar controller in build method or default controller as ancestor in a tree
controller: bbc,
expandedHeight: expandedHeight.value,
horizontalMargin: 16,
expandedBackColor: Theme.of(context).backgroundColor,
// Your bottom sheet code here
expandedBody: Center(
child: Text("Hello world!"),
),
// Your bottom app bar code here
bottomAppBarBody: Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
mainAxisSize: MainAxisSize.max,
children: <Widget>[
Expanded(
child: Text(
"Hello",
textAlign: TextAlign.center,
),
),
Spacer(
flex: 2,
),
Expanded(
child: Text(
"World",
textAlign: TextAlign.center,
),
),
],
),
),
)
Customization (Optional)
BottomExpandableAppBar
horizontalMargin - distance of sheet's sides from edge
bottomOffset - distance of top sheet's edge from top appbar's edge in closed state
shape - notch shape for FAB
appBarHeight - if you need change app bar height
bottomAppBarColor - background color of appbar container
or
appBarDecoration - decoration of appbar container
expandedBackColor - background color of sheet container
or
expandedDecoration - decoration of sheet container
Controls
BottomAppBarController
Settings
snap - if true sheet will snap to opened and closed state
dragLength - distance that pointer should travel for fully open/close the sheet
Callbacks
Should have dragLength defined
onDrag - use that with GestureDetector for swipe control
onDragEnd - use that with GestureDetector for swipe control
open - switch the sheet to closed state
close - switch the sheet to opened state
swap - if sheet is opened closes the sheet and vice versa
उपयोग की गई निर्भरताएँ
निर्भरता सूची 3 आइटम
- flutter
{"sdk":"flutter"} - flutter_testडेवलपमेंट
{"sdk":"flutter"} - mockitoडेवलपमेंट
^5.0.8
अपने प्रोजेक्ट के लिए रिपॉज़िटरी कैसे चुनें?
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
- नाम, लेखक या विवरण से खोजें और तकनीकी विषय से परिणाम सीमित करें।
- स्टार, फ़ोर्क और हाल के पुश की तुलना करें। स्टार रुचि दर्शाते हैं, गुणवत्ता की गारंटी नहीं।
- उपयोग से पहले GitHub पर README, लाइसेंस और Issues जाँचें।
स्रोत और रखरखाव
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
