Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iampawan committed Nov 23, 2023
1 parent 705928b commit c5f2fbb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ packages:
source: hosted
version: "2.4.1"
intl:
dependency: transitive
dependency: "direct overridden"
description:
name: intl
sha256: a3715e3bc90294e971cb7dc063fbf3cd9ee0ebf8604ffeafabd9e6f16abbdbe6
Expand Down
3 changes: 3 additions & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ dev_dependencies:
sdk: flutter
flutter_lints:

dependency_overrides:
intl: 0.18.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
Expand Down
8 changes: 7 additions & 1 deletion lib/src/velocity_xx.dart
Original file line number Diff line number Diff line change
Expand Up @@ -840,9 +840,14 @@ class VxAppData {

/// Wrap your app with [VxApp] to use [VxState] and [VxStore].
class VxApp extends StatefulWidget {
const VxApp({super.key, required this.builder, required this.store});
const VxApp(
{super.key,
required this.builder,
required this.store,
this.interceptors = const []});
final VxAppBuilder? builder;
final VxStore store;
final List<VxInterceptor>? interceptors;

@override
State<VxApp> createState() => _VxAppState();
Expand All @@ -854,6 +859,7 @@ class _VxAppState<T> extends State<VxApp> {
Widget build(BuildContext context) {
return VxState(
store: widget.store,
interceptors: widget.interceptors!,
child: VxConsumer(
mutations: const {VxDarkModeMutation},
builder: (context, _, status) => widget.builder!(context, appData)),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
sdk: flutter
flutter_web_plugins:
sdk: flutter
intl:
intl: ^0.18.1
vxstate: ^2.3.0
vector_math: ^2.1.4

Expand Down

0 comments on commit c5f2fbb

Please sign in to comment.