Created
January 27, 2020 11:24
-
-
Save ashishrawat2911/3cdb0238fc68f78ae0fa5777ad445d60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_multiselection_list/home_page.dart'; | |
| class GridItem extends StatefulWidget { | |
| final Key key; | |
| final Item item; | |
| final ValueChanged<bool> isSelected; | |
| GridItem({this.item, this.isSelected, this.key}); | |
| @override | |
| _GridItemState createState() => _GridItemState(); | |
| } | |
| class _GridItemState extends State<GridItem> { | |
| bool isSelected = false; | |
| @override | |
| Widget build(BuildContext context) { | |
| return InkWell( | |
| onTap: () { | |
| setState(() { | |
| isSelected = !isSelected; | |
| widget.isSelected(isSelected); | |
| }); | |
| }, | |
| child: Stack( | |
| children: <Widget>[ | |
| Image.asset( | |
| widget.item.imageUrl, | |
| color: Colors.black.withOpacity(isSelected ? 0.9 : 0), | |
| colorBlendMode: BlendMode.color, | |
| ), | |
| isSelected | |
| ? Align( | |
| alignment: Alignment.bottomRight, | |
| child: Padding( | |
| padding: const EdgeInsets.all(8.0), | |
| child: Icon( | |
| Icons.check_circle, | |
| color: Colors.blue, | |
| ), | |
| ), | |
| ) | |
| : Container() | |
| ], | |
| ), | |
| ); | |
| } | |
| } |
Author
HI @ramjisubedi,
Check the whole code here
https://github.com/ashishrawat2911/Flutter-MultiSelection
thank you for your support ashish
but jab me click karta hu sabhi yek sath select ho jate hai
aapne link me do page me kiya hai click karne par second page me index send
karke
me yek hi page par try kar raha hu nahi ho raha
image dhekhiye to
…On Sun, Apr 5, 2020 at 12:15 PM Ashish Rawat ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
HI @ramjisubedi <https://github.com/ramjisubedi>,
Check the whole code here
https://github.com/ashishrawat2911/Flutter-MultiSelection
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/3cdb0238fc68f78ae0fa5777ad445d60#gistcomment-3241171>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHS5FEFA2RU7XBNTPPC4RTRLAQRNANCNFSM4MAGGGTA>
.
--
*Thank You*
*Ramji Subedi*
bro how can we do this with future asyn or with http get data.
and again thank you for your support bro.
On Tue, Apr 14, 2020 at 12:14 AM Ramji Subedi <ramjisubedi1991@gmail.com>
wrote:
… thank you for your support ashish
but jab me click karta hu sabhi yek sath select ho jate hai
aapne link me do page me kiya hai click karne par second page me index
send karke
me yek hi page par try kar raha hu nahi ho raha
image dhekhiye to
On Sun, Apr 5, 2020 at 12:15 PM Ashish Rawat ***@***.***>
wrote:
> ***@***.**** commented on this gist.
> ------------------------------
>
> HI @ramjisubedi <https://github.com/ramjisubedi>,
> Check the whole code here
> https://github.com/ashishrawat2911/Flutter-MultiSelection
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://gist.github.com/3cdb0238fc68f78ae0fa5777ad445d60#gistcomment-3241171>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABHS5FEFA2RU7XBNTPPC4RTRLAQRNANCNFSM4MAGGGTA>
> .
>
--
*Thank You*
*Ramji Subedi*
--
*Thank You*
*Ramji Subedi*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can you please submit home_page.dart file