Categories
Mastering Development

using the default value if the parameter is null

How can I write the code block marked in the picture below more properly. My goal is to send the default value to the parameter if the availableColors variable is null. Code Block showDialog<Color>( context: context, builder: (BuildContext context) { return OrientationBuilder( builder: (context, orientation) { return ResponsiveDialog( context: context, title: title, headerColor: headerColor, headerTextColor: […]

Categories
Development

Chart.js Doughnut Chart Adjusting Problem

Whenever i change the page resolution or size or zooming in the page chartjs adjust charts, its okay. But when undo my last action it doesn’t come back its original size. Actually its get bigger in every action that i made on the page. This is what i want this is what happens when i […]

Categories
Development

Collapsing title bar flutter with animation

I am trying to recreate this in Flutter -> https://blog.uptech.team/how-to-build-resizing-image-in-navigation-bar-with-large-title-8ba2e8bcb840 I.e., An app bar that resizes and aligns the title when you drag (Just the title, I don’t want the Captain America shield). I have looked into Sliver App Bar as below: NestedScrollView( controller: _scrollController, physics: NeverScrollableScrollPhysics(), headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) { return <Widget>[ […]