flutter_stretchable_widgets 0.0.8
flutter_stretchable_widgets: ^0.0.8 copied to clipboard
Lots of interesting and useful widgets, such as picker and expandable components.
flutter_stretchable_widgets #
Lots of interesting and useful widgets, such as picker or expandable components.
Demonstrations #

Usage #
Please run example/lib/main.dart
for more demonstrations
import 'package:flutter_stretchable_widgets/widget/stretchable_panel_view.dart';
...
@override
Widget build(BuildContext context) {
return Stack(
children: [
/// the left top one
Positioned(
left: 0,
right: 0,
top: 80,
child: StretchablePanelWidget(
triggerWidget: const Icon(Icons.add),
stretchWidget: Text('Hello world', style: TextStyle(color: Colors.grey.withAlpha(128))),
),
),
/// the right top one
Positioned(
left: 0,
right: 0,
top: 80,
child: StretchablePanelWidget(
widgetsBuilder: (context, state) {
return state.isShowingTriggeredWidget ? const Icon(Icons.add) : const Text('Hello world');
},
),
),
],
);
}
...
Features and bugs #
Please feel free to: request new features and bugs at the issue tracker