Bottom Sheet Widget in Flutter | Flutter Complete Crash Course | Flutter Widgets | 30DaysOfFlutter

Поделиться
HTML-код
  • Опубликовано: 26 янв 2025

Комментарии • 9

  • @EkanshSharma-v9k
    @EkanshSharma-v9k 13 дней назад

    The greatest Flutter lectures on youtube

  • @manishkarki8119
    @manishkarki8119 Год назад +1

    love from nepal bro🇳🇵❣️

  • @ernsftwrr1
    @ernsftwrr1 3 года назад +2

    Dude you are great

  • @balavardhanreddy8581
    @balavardhanreddy8581 3 года назад

    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

  • @mohammedshahidma1563
    @mohammedshahidma1563 3 года назад

    Waiting for the next video!!!

  • @akshjain5680
    @akshjain5680 Год назад

    Good video

  • @tatakaedattebayo8208
    @tatakaedattebayo8208 2 года назад

    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),
    ),
    ),
    ),
    );
    }}

  • @ArunMonarunmonv
    @ArunMonarunmonv 3 года назад

    Thank you

  • @瑋陳-u2t
    @瑋陳-u2t 2 года назад

    Good