The UI Challenge written in flutter
Described in following post:
In home_page.dart you can replace ExhibitionBottomSheet with ScrollableExhibitionSheet to achieve see different implementation with full Listview.
The UI Challenge in Flutter
Home Page: https://marcinszalek.pl/flutter/tickets-challenge-parallax/
The UI Challenge written in flutter
Described in following post:
In home_page.dart you can replace ExhibitionBottomSheet with ScrollableExhibitionSheet to achieve see different implementation with full Listview.
Just wanted to let you know that this overflows on my device like this
The Error Log is this:
Restarted application in 2,949ms.
I/flutter (26129): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (26129): The following message was thrown during layout:
I/flutter (26129): A RenderFlex overflowed by 9.0 pixels on the bottom.
I/flutter (26129):
I/flutter (26129): The overflowing RenderFlex has an orientation of Axis.vertical.
I/flutter (26129): The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and
I/flutter (26129): black striped pattern. This is usually caused by the contents being too big for the RenderFlex.
I/flutter (26129): Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the
I/flutter (26129): RenderFlex to fit within the available space instead of being sized to their natural size.
I/flutter (26129): This is considered an error condition because it indicates that there is content that cannot be
I/flutter (26129): seen. If the content is legitimately bigger than the available space, consider clipping it with a
I/flutter (26129): ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex,
I/flutter (26129): like a ListView.
I/flutter (26129): The specific RenderFlex in question is:
I/flutter (26129): RenderFlex#83f11 relayoutBoundary=up2 OVERFLOWING
I/flutter (26129): creator: Column ← Padding ← CardContent ← Expanded ← Column ← Semantics ← DefaultTextStyle ←
I/flutter (26129): AnimatedDefaultTextStyle ← _InkFeatures-[GlobalKey#45100 ink renderer] ←
I/flutter (26129): NotificationListener<LayoutChangedNotification> ← CustomPaint ← _ShapeBorderPaint ← ⋯
I/flutter (26129): parentData: offset=Offset(8.0, 8.0) (can use size)
I/flutter (26129): constraints: BoxConstraints(0.0<=w<=256.0, h=112.0)
I/flutter (26129): size: Size(256.0, 112.0)
I/flutter (26129): direction: vertical
I/flutter (26129): mainAxisAlignment: start
I/flutter (26129): mainAxisSize: max
I/flutter (26129): crossAxisAlignment: start
I/flutter (26129): textDirection: ltr
I/flutter (26129): verticalDirection: down
I/flutter (26129): ◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤
I/flutter (26129): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (26129): Another exception was thrown: A RenderFlex overflowed by 9.0 pixels on the bottom.
I/flutter (26129): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (26129): The following message was thrown during layout:
I/flutter (26129): A RenderFlex overflowed by 9.0 pixels on the bottom.
I/flutter (26129):
I/flutter (26129): The overflowing RenderFlex has an orientation of Axis.vertical.
I/flutter (26129): The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and
I/flutter (26129): black striped pattern. This is usually caused by the contents being too big for the RenderFlex.
I/flutter (26129): Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the
I/flutter (26129): RenderFlex to fit within the available space instead of being sized to their natural size.
I/flutter (26129): This is considered an error condition because it indicates that there is content that cannot be
I/flutter (26129): seen. If the content is legitimately bigger than the available space, consider clipping it with a
I/flutter (26129): ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex,
I/flutter (26129): like a ListView.
I/flutter (26129): The specific RenderFlex in question is:
I/flutter (26129): RenderFlex#83f11 relayoutBoundary=up2 OVERFLOWING
I/flutter (26129): creator: Column ← Padding ← CardContent ← Expanded ← Column ← Semantics ← DefaultTextStyle ←
I/flutter (26129): AnimatedDefaultTextStyle ← _InkFeatures-[GlobalKey#45100 ink renderer] ←
I/flutter (26129): NotificationListener<LayoutChangedNotification> ← CustomPaint ← _ShapeBorderPaint ← ⋯
I/flutter (26129): parentData: offset=Offset(8.0, 8.0) (can use size)
I/flutter (26129): constraints: BoxConstraints(0.0<=w<=256.0, h=112.0)
I/flutter (26129): size: Size(256.0, 112.0)
I/flutter (26129): direction: vertical
I/flutter (26129): mainAxisAlignment: start
I/flutter (26129): mainAxisSize: max
I/flutter (26129): crossAxisAlignment: start
I/flutter (26129): textDirection: ltr
I/flutter (26129): verticalDirection: down
I/flutter (26129): ◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤
I/flutter (26129): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (26129): Another exception was thrown: A RenderFlex overflowed by 9.0 pixels on the bottom.
After i make git clone your project i've tried to run main.dart but there is some errors...
Can you help please?
Running Gradle task 'assembleDebug'...
C:\Users\qant\.gradle\caches\transforms-1\files-1.1\core-1.1.0.aar\e0a74174efc3ea9ed2318612cd06bff7\res\values\values.xml:7:5-70: AAPT: error: resource android:attr/fontVariationSettings not found.
C:\Users\qant\.gradle\caches\transforms-1\files-1.1\core-1.1.0.aar\e0a74174efc3ea9ed2318612cd06bff7\res\values\values.xml:7:5-70: AAPT: error: resource android:attr/ttcIndex not found.
There's a stateless tabs page with two constructors of text and isSelected.
class Tabs extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Row(
crossAxisAlignment: CrossAxisAlignment.end,
children: <Widget>[
SizedBox(width: 24),
MyTab(text: 'Nearby', isSelected: false),
MyTab(text: 'Recent', isSelected: true),
MyTab(text: 'Notice', isSelected: false),
],
);
}
}
class MyTab extends StatelessWidget {
final String text;
final bool isSelected;
const MyTab({Key key, @required this.isSelected, @required this.text})
: super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
text,
style: TextStyle(
fontSize: isSelected ? 16 : 14,
color: isSelected ? Colors.black : Colors.grey,
fontWeight: isSelected ? FontWeight.w600 : FontWeight.w500,
),
),
Container(
height: 6,
width: 20,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4),
color: isSelected ? Color(0xFFFF5A1D) : Colors.white,
),
)
],
),
);
}
}
And this page is called in home_Page.dart-
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Stack(
children: <Widget>[
SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
SizedBox(height: 8),
Header(),
SizedBox(height: 40),
Tabs(),
SizedBox(height: 8),
SlidingCardsView(),
],
),
),
],
),
);
}
}
As you can see that the SlidingCardsView() is called below the tabs, but I want to open the SlidingCardsView() on clicking the recent tab and further PageOne() to Nearby and PageTwo() to notice tabs. Can anyone help me with this?.
Hi my friend,
Thank you for sharing this beautiful demo and clean code,
I am new with flutter and would like to know if there is a way to activate navigation on your custom created tabs or to customise flutter basic tabs class.
Thanks in advance
Hello,
I am Maheshwari from team GeekyAnts. On behalf of Start Flutter, we add open source products which we find helpful to the community & also we provide credits to author itself.
Let me know if you are interested showcase your product in our open source website.
If yes, then I request you to add MIT Licence in your repo.
Looking forward to hear from you.
I noticed that the bottom right MenuButton works for exhibition_bottom_sheet but not for scrollable_exhibition_bottom_sheet.dart.
Would it be possible to update scrollable_exhibition_bottom_sheet.dart to make the MenuButton work?
Thanks a lot!
How could we use bottomsheet with ListView? How could we make the scroll and the animatio. work with a ListView items?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.