From aed86d7ac336817d96e91a86664a32c0987086e8 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Wed, 11 Jan 2023 22:34:26 +0530 Subject: [PATCH] Fixed nested import --- lib/src/multi_flow_listener.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/multi_flow_listener.dart b/lib/src/multi_flow_listener.dart index 4162760..6380393 100644 --- a/lib/src/multi_flow_listener.dart +++ b/lib/src/multi_flow_listener.dart @@ -1,5 +1,5 @@ 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'; @@ -7,10 +7,10 @@ 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 listeners, required Widget child}) - : super(children: listeners, child: child); + : super(providers: listeners, child: child); }