iampawan / 30DaysOfFlutter

Learn Flutter in 30 Days
413 stars 324 forks source link

Issues with VxBuilder #36

Closed xanyl closed 2 years ago

xanyl commented 2 years ago
VxBuilder(
            mutations: {RemoveMutation},
            builder: (context) {
              return "\$${_cart.totalPrice}"
                  .text
                  .xl5
                  .color(context.theme.accentColor)
                  .make();
            },
)

Screenshot 2022-05-24 083155 )

error messege: _The argument type 'Widget Function(BuildContext)' can't be assigned to the parameter type 'Widget Function(BuildContext, dynamic, VxStatus?)'.dartargument_type_not_assignable_

rohantraining commented 2 years ago
VxBuilder(
            mutations: {RemoveMutation},
            builder: (context) {
              return "\$${_cart.totalPrice}"
                  .text
                  .xl5
                  .color(context.theme.accentColor)
                  .make();
            },
)

Screenshot 2022-05-24 083155 )

error messege: _The argument type 'Widget Function(BuildContext)' can't be assigned to the parameter type 'Widget Function(BuildContext, dynamic, VxStatus?)'.dartargument_type_not_assignable_

how did u solve Vxbuilder issue?

rohantraining commented 2 years ago
VxBuilder(
            mutations: {RemoveMutation},
            builder: (context) {
              return "\$${_cart.totalPrice}"
                  .text
                  .xl5
                  .color(context.theme.accentColor)
                  .make();
            },
)

Screenshot 2022-05-24 083155 )

error messege: _The argument type 'Widget Function(BuildContext)' can't be assigned to the parameter type 'Widget Function(BuildContext, dynamic, VxStatus?)'.dartargument_type_not_assignable_

how did u solve vxbuilder issue?

rohantraining commented 2 years ago

Plzz tell me how do I resolve vxbuilder issue?