| 123456789101112131415161718192021222324252627282930 |
- // Automatic FlutterFlow imports
- import '/backend/schema/structs/index.dart';
- import '/flutter_flow/flutter_flow_theme.dart';
- import '/flutter_flow/flutter_flow_util.dart';
- import 'index.dart'; // Imports other custom actions
- import '/flutter_flow/custom_functions.dart'; // Imports custom functions
- import 'package:flutter/material.dart';
- // Begin custom action code
- // DO NOT REMOVE OR MODIFY THE CODE ABOVE!
- // Set your action name, define your arguments and return parameter,
- // and then add the boilerplate code using the `</>` button on the right!
- //
- import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart';
- Future herlaadLijsten() async {
- await WidgetsBinding.instance.endOfFrame;
- await Future.delayed(const Duration(milliseconds: 50));
- final controllers = <dynamic>[];
- final tegaan = <Element>[];
- final root = WidgetsBinding.instance.rootElement;
- if (root != null) tegaan.add(root);
- while (tegaan.isNotEmpty) {
- final element = tegaan.removeLast();
- final w = element.widget;
- if (w is PagedMasonryGridView) controllers.add(w.pagingController);
- element.visitChildren(tegaan.add);
- }
- for (final controller in controllers) controller.refresh();
- }
|