Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
The greatest Flutter lectures on youtube
love from nepal bro🇳🇵❣️
Dude you are great
Thank U very very much bro , now I resolved my issue by watching 2 min of your video I subscribed your channel Lots of love
Waiting for the next video!!!
Good video
Hope you give reply to meCan u change the color of icon inside the modalBottomSheet using inkwellScaffold --- body ---Card(gesture detector ----- ontap)(print("outer") --- ModalBottomSheet --- Inkwell(ontap icon color should change)(print("inner")Terminal outerinner outerthen color is changingclass MyStatelessWidget extends StatefulWidget { MyStatelessWidget({ Key? key, }) : super(key: key); @override State createState() => _MyStatelessWidgetState();}bool isFavorite = false;class _MyStatelessWidgetState extends State { @override Widget build(BuildContext context) { return Center( child: GestureDetector( onTap: () { showModalBottomSheet( context: context, builder: (BuildContext context) { return Container( height: 200, // color: Colors.amber, child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [ // bottomlisttile(isFavorite: isFavorite, name: "") GestureDetector( onTap: () { setState(() { isFavorite = !isFavorite; }); }, child: new ListTile( // trailing: InkWell( // child: Icon(Icons.share), // ), trailing: isFavorite ? Icon( Icons.favorite, color: Colors.yellow ) : Icon(Icons.favorite), title: new Text('Your Text', style: new TextStyle( fontWeight: FontWeight.bold, fontSize: 14.0)), ), ), ], ), ), ); }, ); }, child: Container( height: MediaQuery.of(context).size.height / 4, width: MediaQuery.of(context).size.width, child: Card( child: Image.network( 'placeimg.com/640/480/any', fit: BoxFit.fill, ), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10.0), ), elevation: 5, margin: EdgeInsets.all(10), ), ), ), );}}
Thank you
Good
The greatest Flutter lectures on youtube
love from nepal bro🇳🇵❣️
Dude you are great
Thank U very very much bro , now I resolved my issue by watching 2 min of your video I subscribed your channel Lots of love
Waiting for the next video!!!
Good video
Hope you give reply to me
Can u change the color of icon inside the modalBottomSheet using inkwell
Scaffold
--- body
---Card(gesture detector ----- ontap)(print("outer")
--- ModalBottomSheet
--- Inkwell(ontap icon color should change)(print("inner")
Terminal
outer
inner
outer
then color is changing
class MyStatelessWidget extends StatefulWidget {
MyStatelessWidget({
Key? key,
}) : super(key: key);
@override
State createState() => _MyStatelessWidgetState();
}
bool isFavorite = false;
class _MyStatelessWidgetState extends State {
@override
Widget build(BuildContext context) {
return Center(
child: GestureDetector(
onTap: () {
showModalBottomSheet(
context: context,
builder: (BuildContext context) {
return Container(
height: 200,
// color: Colors.amber,
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
// bottomlisttile(isFavorite: isFavorite, name: "")
GestureDetector(
onTap: () {
setState(() {
isFavorite = !isFavorite;
});
},
child: new ListTile(
// trailing: InkWell(
// child: Icon(Icons.share),
// ),
trailing: isFavorite
? Icon(
Icons.favorite,
color: Colors.yellow
)
: Icon(Icons.favorite),
title: new Text('Your Text',
style: new TextStyle(
fontWeight: FontWeight.bold, fontSize: 14.0)),
),
),
],
),
),
);
},
);
},
child: Container(
height: MediaQuery.of(context).size.height / 4,
width: MediaQuery.of(context).size.width,
child: Card(
child: Image.network(
'placeimg.com/640/480/any',
fit: BoxFit.fill,
),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),
),
elevation: 5,
margin: EdgeInsets.all(10),
),
),
),
);
}}
Thank you
Good