Comments (3)
I have checked the package, replace few lines of code of oveflow with clip behaviour and I able to run the code. below is the changes I made.
class Stack extends widget.Stack {
/// Create stack instance
Stack({
widget.Key key,
AlignmentGeometry alignment = AlignmentDirectional.topStart,
TextDirection textDirection,
StackFit fit = StackFit.loose,
//Overflow overflow = Overflow.clip,
Clip clipBehavior = Clip.antiAlias,
List<widget.Widget> children = const <widget.Widget>[],
}) : super(
key: key,
alignment: alignment,
textDirection: textDirection,
fit: fit,
clipBehavior: clipBehavior,
// overflow: overflow,
children: children);
@override
RenderStack createRenderObject(widget.BuildContext context) {
return _RenderStack(
alignment: alignment,
textDirection: textDirection ?? widget.Directionality.of(context),
fit: fit,
clipBehavior: clipBehavior,
// overflow: overflow,
);
}
}
/// Enable overflow hitTest
class _RenderStack extends RenderStack {
_RenderStack({
List<RenderBox> children,
AlignmentGeometry alignment = AlignmentDirectional.topStart,
TextDirection textDirection,
StackFit fit = StackFit.loose,
Clip clipBehavior = Clip.antiAlias,
}) : super(
children: children,
alignment: alignment,
textDirection: textDirection,
fit: fit,
clipBehavior: clipBehavior,
);
@override
bool hitTest(BoxHitTestResult result, {Offset position}) {
if (clipBehavior == Clip.antiAliasWithSaveLayer ||
size.contains(position)) {
if (hitTestChildren(result, position: position) ||
hitTestSelf(position)) {
result.add(BoxHitTestEntry(this, position));
return true;
}
}
return false;
}
}
```
I might wrong . Just my 2cent. I hope this might help you.
from convex_bottom_bar.
This breaking changes is a known issue.
Attention
If you are using flutter dev/beta channel, such as flutter v1.20, there can be compile error. Please use v2.2.4-flutter-1.20
Also I noticed that the v1.20 has been release into stable channel. We will merge the fixed branch into master soon
from convex_bottom_bar.
Noted @avenwu
from convex_bottom_bar.
Related Issues (20)
- Unable to remove the DEBUG label HOT 1
- DefaultTabController Error after Flutter 3.7.0 upgrade HOT 4
- Error building after adding import HOT 4
- Error: Member not found: 'DefaultTabController.maybeOf'. HOT 2
- Does anyone have problem with impeller-enabled on iOS HOT 1
- Error: Member not found: 'DefaultTabController.maybeOf'. Issue HOT 4
- WEB can't be built HOT 2
- Unable to run example code HOT 1
- Error: Member not found: 'DefaultTabController.maybeOf'. return widget.controller ?? DefaultTabController.maybeOf(context); HOT 1
- How to change text styte depends on selected tab?
- ConvexAppBar - elevation, does not work HOT 7
- Selected option occludes snack bar messages HOT 3
- Question: How to not change selected index when another item is pressed?
- Cannot change the currentIndex using Global Key HOT 1
- How can I add IconButton to TabItem HOT 1
- How can I refresh a page during page transitions?
- More customization needed (Circle shadow, switch animation) HOT 1
- ConvexAppBar.badge reactive circle resizes itself when badge isn't empty
- StyleHook issue
- Pixel overflow on big label HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from convex_bottom_bar.