Skip to content

Instantly share code, notes, and snippets.

@rahichesoft
Created July 1, 2018 11:09
Show Gist options
  • Select an option

  • Save rahichesoft/5eca1e0738944f0c71ed466c1dcc7d18 to your computer and use it in GitHub Desktop.

Select an option

Save rahichesoft/5eca1e0738944f0c71ed466c1dcc7d18 to your computer and use it in GitHub Desktop.

Revisions

  1. rahichesoft created this gist Jul 1, 2018.
    39 changes: 39 additions & 0 deletions test sipe in column
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@

    void main() => runApp(MaterialApp(
    home: new MyApp(),
    ));

    class MyApp extends StatefulWidget {
    @override
    _MyAppState createState() => new _MyAppState();
    }

    class _MyAppState extends State<MyApp> {

    var index=0;

    @override
    Widget build(BuildContext context) {

    return new Scaffold(
    appBar: new AppBar(),
    body: Padding(
    padding: const EdgeInsets.all(8.0),
    child: new Column(children: <Widget>[
    new Container(height: 200.0,color: Colors.grey,),
    Container(height: 100.0,
    child: new Swiper.children(
    autoplay: true,
    scrollDirection: Axis.horizontal,
    index: index,
    children: <Widget>[
    Container(height:100.0,color: Colors.red),
    Container(height:100.0,color: Colors.purple),
    Container(height:100.0,color: Colors.grey),
    ],),
    )
    ],),
    ),
    );
    }
    }