Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dynamic widget #7

Open
nitneuq33000 opened this issue Aug 3, 2018 · 5 comments
Open

add dynamic widget #7

nitneuq33000 opened this issue Aug 3, 2018 · 5 comments

Comments

@nitneuq33000
Copy link

hello, i search to add card horizontal caroussel to my current vertical card listview. my cards are dynamics with some widgets. flutter swiper can make an horizontal caroussel in this case ? or can it be add to your plugin ? thank you

@jzoom
Copy link
Member

jzoom commented Aug 3, 2018

could you paste some codes or images ?

@nitneuq33000
Copy link
Author

i tried to put this code exemple in one caroussel card

                               new Card(
                                  elevation: 2.0,
                                  child: new Stack(
                                    alignment: AlignmentDirectional.center,
                                    children: <Widget>[
                                      new Container(
                                        child: new Image.network(staticMapUri.toString()),
                                      ),
                                      FractionalTranslation(
                                        translation: Offset(0.0, 0.0),
                                        child: new Container(
                                          alignment: new FractionalOffset(0.0, 0.0),
                                          decoration: new BoxDecoration(
                                            border: new Border.all(
                                              color: Colors.lightBlue.withOpacity(0.5),
                                              width: GPS2/3.4,
                                            ),
                                            shape: BoxShape.circle,
                                          ),
                                        ),
                                      ),
                                      new Container(
                                        //padding: const EdgeInsets.only(bottom:10.0),
                                        margin: new EdgeInsets.all(140.0),

                                        child : Icon(Icons.location_on, color: Colors.white, size: 25.0),
                                      ),
                                    ],
                                  ),
                                ),

and this code in another caroussel

new Card(
elevation: 2.0,
color: Colors.white,
child :new Stack(
children: [
Column (
children: [
Container (
padding: const EdgeInsets.all(10.0),),
new CircularPercentIndicator(
fillColor: Colors.white,
radius: 100.0,
lineWidth: 10.0,
animation: true,
percent: bat2,
center: new Text(
"$bat3%",
style:
new TextStyle(fontWeight: FontWeight.normal, fontSize: 20.0),
),
footer: new Text(
"Batterie",
style:
new TextStyle(fontWeight: FontWeight.normal, fontSize: 17.0),
),
circularStrokeCap: CircularStrokeCap.round,
progressColor: Colors.lightBlue,
),
],
),

                              new Column(
                                children: <Widget>[
                                  new Row (
                                      mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                                      children: <Widget>[
                                        Column (
                                          children: <Widget>[
                                            Container (
                                              padding: const EdgeInsets.only(top :40.0),),
                                            new ScaleTransition(
                                              scale: _animation10,
                                              alignment: FractionalOffset.center,
                                              child :   new CircularPercentIndicator(
                                                fillColor: Colors.white,
                                                radius: 70.0,
                                                lineWidth: 5.0,
                                                animation: false,
                                                percent: 1.0,
                                                center: new Icon(
                                                  Icons.hearing,
                                                  size: 30.0,
                                                  color: Colors.grey.shade400,
                                                ),
                                                footer: new Text(
                                                  "     Ecoute\n silencieuse",
                                                  style:
                                                  new TextStyle(fontWeight: FontWeight.normal, fontSize: 15.0),
                                                ),
                                                circularStrokeCap: CircularStrokeCap.round,
                                                progressColor: Colors.grey.shade400,
                                              ),
                                            ),
                                          ],
                                        ),


                                        new Column(
                                          children: <Widget>[

                                            Container (
                                              padding: const EdgeInsets.only(top :160.0),),

                                            new ScaleTransition(
                                              scale: _animation11,
                                              alignment: FractionalOffset.center,
                                              child :   new CircularPercentIndicator(
                                                fillColor: Colors.white,
                                                radius: 70.0,
                                                lineWidth: 5.0,
                                                animation: false,
                                                percent: 1.0,
                                                center: new Icon(
                                                  Icons.battery_alert,
                                                  size: 30.0,
                                                  color: Colors.grey.shade400,
                                                ),
                                                footer: new Text(
                                                  "Batterie \n  faible",
                                                  style:
                                                  new TextStyle(fontWeight: FontWeight.normal, fontSize: 15.0),
                                                ),
                                                circularStrokeCap: CircularStrokeCap.round,
                                                progressColor: Colors.grey.shade400,
                                              ),

                                            ),
                                          ],
                                        ),

                                        Container (
                                          padding: const EdgeInsets.all(1.0),),

                                        Column (
                                          children: <Widget>[
                                            Container (
                                              padding: const EdgeInsets.only(top :160.0),),
                                            new ScaleTransition(
                                              scale: _animation12,
                                              alignment: FractionalOffset.center,
                                              child :   new CircularPercentIndicator(
                                                fillColor: Colors.white,
                                                radius: 70.0,
                                                lineWidth: 5.0,
                                                animation: false,
                                                percent: 1.0,
                                                center: new Icon(
                                                  Icons.notifications_off,
                                                  size: 30.0,
                                                  color: Colors.grey.shade400,
                                                ),
                                                footer: new Text(
                                                  "Décrochage \n       auto",
                                                  style:
                                                  new TextStyle(fontWeight: FontWeight.normal, fontSize: 15.0),
                                                ),
                                                circularStrokeCap: CircularStrokeCap.round,
                                                progressColor: Colors.grey.shade400,
                                              ),
                                            ),
                                          ],
                                        ),


                                        Column (
                                          children: <Widget>[
                                            Container (
                                              padding: const EdgeInsets.only(top :40.0),),
                                            new ScaleTransition(
                                              scale: _animation13,
                                              alignment: FractionalOffset.center,
                                              child :   new CircularPercentIndicator(
                                                fillColor: Colors.white,
                                                radius: 70.0,
                                                lineWidth: 5.0,
                                                animation: false,
                                                percent: 1.0,
                                                center: new Icon(
                                                  Icons.trending_down,
                                                  size: 30.0,
                                                  color: Colors.green.shade400,
                                                ),
                                                footer: new Text(
                                                  "Détection \n de chute",
                                                  style:
                                                  new TextStyle(fontWeight: FontWeight.normal, fontSize: 15.0),
                                                ),
                                                circularStrokeCap: CircularStrokeCap.round,
                                                progressColor: Colors.green.shade400,
                                              ),
                                            ),
                                          ],
                                        ),
                                      ]
                                  ),
                                  Container (
                                    padding: const EdgeInsets.all(10.0),),
                                ],
                              )
                            ],
                          ),
                        ),

jzoom added a commit that referenced this issue Aug 12, 2018
@jzoom
Copy link
Member

jzoom commented Aug 12, 2018

@nitneuq33000
Copy link
Author

nitneuq33000 commented Aug 18, 2018 via email

@nitneuq33000
Copy link
Author

nitneuq33000 commented Aug 18, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants