flutter_draggable_gridview_haoxin 1.0.2 flutter_draggable_gridview_haoxin: ^1.0.2 copied to clipboard
This package helps you to add drag & drop functionality to exising Gridview.builder.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_draggable_gridview_haoxin
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_draggable_gridview_haoxin: ^1.0.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_draggable_gridview_haoxin/common/global_variables.dart';
import 'package:flutter_draggable_gridview_haoxin/constants/colors.dart';
import 'package:flutter_draggable_gridview_haoxin/flutter_draggable_gridview.dart';
import 'package:flutter_draggable_gridview_haoxin/models/draggable_gridItem.dart';
import 'package:flutter_draggable_gridview_haoxin/widgets/empty_item.dart';
import 'package:flutter_draggable_gridview_haoxin/widgets/placeholder_widget.dart';