reorderable_griditem_view 0.0.1
reorderable_griditem_view: ^0.0.1 copied to clipboard

A new flutter plugin project.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:reorderable_griditem_view/reorderable_griditem_view.dart';

void main() {
  runApp(MyApp());
}

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

class _MyAppState extends State<MyApp> {
  List<Widget> _item = [];

  @override
  void initState() {
    super.initState();
    for(int i = 0; i < 4; i++){
      _item.add(Container(color: Colors.blue[(i+1)*100],));
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: ReorderableGridview.builder(
          itemcount: _item.length, 
          keybuilder: (index){
            return index;
          },
          itembuilder: (index){
            return _item[index];
          },
        )
      ),
    );
  }
}
0
likes
100
pub points
0%
popularity

A new flutter plugin project.

Repository (missing)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

async, flutter

More

Packages that depend on reorderable_griditem_view