magento2 add custom class to a patriccular widget - class

How can we add a custom class for a particular widget added from magento2 backend?
I tried with Magento_Cms/templates/widget/static_block/default.phtml
but it will effect all the widget,anybody have any solution?
Thanks in advance

Related

How can I create a permanent drawer like interface in Scaffold without using the widget Drawer? Is it even possible?

I want a drawer that does not closes, it needs to stay there permanently. I could do it with the help of a container, but I am confused in the process. Also how can I create the interface inside the drawer like (Featured,Bags and Shoes etc). Can anybody help me?
You can use Column widget and generate your desired UI elements , and through GestureDetector you can navigate your pages on those respective elements.

Stateful Widget Menu in multiple stateful classes

I have a question regarding stateful widget calls:
I created a floating-action-button menu in a stateful class, as the data may change at runtime.
Now, I want to access the fab menu in other stateful classes (and other screens).
But I'm not able to do so and could only do so in stateless classes.
Hope you can help me!! Thank you so much!
(I created the similar to: https://medium.com/#agungsurya/create-a-simple-animated-floatingactionbutton-in-flutter-2d24f37cfbcc)
You can use Provider package or any other state management package to handle that.
or simply you can make a static menu and you'll be able to modify it from any Class (Screen)

Flutter create custom search UI extends SearchDelegate

I have a fully tested Search class which extends SearchDelegate, it always shows the Searchbar within the appbar as material design.
But I want it to be like this one below
How can I change the UI of the Searchbar? without leaving the SearchDelegate methods like
-buildActions
-buildLeading
-buildResults ... etc
showSearch function is always displayed on the AppBar. You can use CupertinoSearchTextField widget from the cupertino library to have an iOS-oriented search TextField similar to the screenshot you've shared. Another workaround for the feature that you're looking for is by using AutoComplete Widget

Flutter selection page transformer

I want to make a widget like this, I am a beginner - how can I make this?
There is one additional constraint: the selection bar above can have more than 3 options.
This code will help to you make swiper page design
Flutter dependency : flutter_swiper
https://github.com/lohanidamodar/flutter_ui_challenges/blob/master/lib/src/pages/animations/animation1/animation1.dart

Reuse the tab of a component in another component except a widget in touch ui aem

I have a component /apps/myproject/component1.
In its dialog i have some widgets.Now I have another component /apps/myproject/component2 and its dialog want to use the same tab but a widget should be removed and one should be added in component2 touch UI dialog in AEM.
I tried to achieve it using
sling:resourceType :"granite/ui/components/foundation/include"
path:"/apps/myproject/component1"
on tab1.
But if i want to add and remove a widget, i am not able to do that.
Can anyone please help me?