Skip to content

Commit

Permalink
Merge pull request #7
Browse files Browse the repository at this point in the history
Fixed nested
  • Loading branch information
shubham16g authored Jan 11, 2023
2 parents 0d2c545 + aed86d7 commit ce11d78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/multi_flow_listener.dart
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import 'package:flutter/cupertino.dart';
import 'package:nested/nested.dart';
import 'package:provider/provider.dart';
import 'package:view_model_x/src/base_flow_listener_single_child_widget.dart';
import 'shared_flow_listener.dart';
import 'state_flow_listener.dart';

/// [MultiFlowListener] converts the [StateFlowListener] and [SharedFlowListener] list into a tree of nested widgets.
/// As a result, the only advantage of using [MultiFlowListener] is improved
/// readability due to the reduction in nesting and boilerplate.
class MultiFlowListener extends Nested {
class MultiFlowListener extends MultiProvider {
MultiFlowListener(
{super.key,
required List<BaseFlowListenerSingleChildWidget> listeners,
required Widget child})
: super(children: listeners, child: child);
: super(providers: listeners, child: child);
}

0 comments on commit ce11d78

Please sign in to comment.