flutter-meedu's People
flutter-meedu's Issues
Global form key duplicated
Hola Darwin, tengo un problema:
Estoy usando una global key para un formulario y la cree en el SimpleNotifier
class ExampleController extends SimpleNotifier {
...
GlobalKey<FormState> formKey = GlobalKey<FormState>();
...
}
Entonces hago el siguiente flujo
VistaInicial -> VistaLista -> VistaModificarItem -> VistaAgregarItem
La VistaModificarItem y la VistaAgregarItem son la misma solo que cuando se agrega tiene un parámetro 0 y cuando se edita un parámetro distinto de 0.
El problema ocurre cuando intento pasar desde VistaModificarItem a VistaAgregarItem, o desde VistaAgregarItem a otra VistaAgregarItem.
Intenté usar router.popAndPushNamed('/create'), pero antes de que se llame el dispose arroja un error de que la GlobalKey está duplicada.
¿Qué podría hacer en ese caso?, ¿acaso indicar autoDispose: false y llamar el dispose antes del router.push?
A TestController was used after being disposed.
Hola @darwin-morocho estaba haciendo pruebas de navegación con SimpleController y al quitar varias vistas del stack a la vez, se genera esta excepción:
════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown while finalizing the widget tree:
A TestController was used after being disposed.
'package:meedu/src/state_managment/base_controller.dart':
Failed assertion: line 24 pos 12: '_listeners != null'
Pasa específicamente utilizando el SimpleBuilder en una de las vistas que quito del stack
te comparto un proyecto de prueba por si lo quieres replicar
https://github.com/Carl0395/TestFlutterMeedu.git
Can it be translated into Chinese?
Problema con la librería modal_bottom_sheet
Hola @darwin-morocho estaba utilizando la librería modal_bottom_sheet y al navegar a una nueva vista con Navigator.push
y MaterialWithModalsPageRoute
ya que es necesario para que el modal se abra estilo iOS, luego de abrir el modal y volverlo a cerrar el consumer no vuelve a escuchar los cambios, te comparto un video https://drive.google.com/file/d/1YCCITagTHaFd7iKxCtVKlxOeIkhkZRg3/view?usp=sharing y el código fuente donde se replica:
https://github.com/Carl0395/modal_test
Cualquier duda que tengas, estoy a disposición 👍🏼
MultiProvider Missing on 4.3.0
I've been using this package and I love it but I'm still using the version 1.1.1 on one of my production ready apps.
However, when I upgraded to 4.3.0 , my multiprovider went missing. I don't have access to a multiprovider and I've been trying to look for another class which does the same but I can't find it.
Is it me or is the multiprovider missing on this latest version with nullsafety?
Discord server
Hi,
What is the discord server?
Null Safety migration
Are there any plans to migrate this package to null safety down the line? I've been using it and I'm in love with it.
How to add subtitle support?
something Wrong...
Hi,
This may be simple but i don't know why this happened.
when calling method in CounterController class,
i typed wrong name of the method, increment.
But my Android Studio didn't catch the mistake.
This problem come from Android studio? but this is first to me since now.
Plus, am i first on this place ? or This place has been deactivated ?
The code is as same as below.
/*
Counter feature.
*/
import 'package:flutter_meedu/flutter_meedu.dart';
import 'package:flutter/material.dart';
import 'package:flutter_meedu/router.dart' as router;
class CounterController extends SimpleNotifier{
int counter = 0;
void increament(){
this.counter++;
notify();
}
}
final SimpleProvider provider = SimpleProvider<CounterController>(
(ref) => CounterController(),
);
void main()=> runApp(MaterialApp(
home: MyCounter(),
navigatorObservers: [
router.observer,
],
));
class MyCounter extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("simple test"),
),
floatingActionButton: FloatingActionButton(
onPressed: (){
provider.read.increment(); // <------------------ this line.
},
child: Text("Plus"),
),
body: Center(
child: Consumer(
builder: (_,ref,__){
final controller = ref.watch(provider);
return Text("Counter: ${controller.counter}");
},
),
),
);
}
}
Consumer and ConsumerWidget not defined
When trying to use Consumer
and ConsumerWidget
I get Classes can only extend other classes. Try specifying a different superclass, or removing the extends clause.dart[extends_non_class](https://dart.dev/diagnostics/extends_non_class)
Can add Web support ?
Can add Web support ?
Duplicar Widget
He creado un Widget por medio de un controlador y su respectiva template, lo he hecho con ProviderPage y SimpleController, pero no he podido individualizar dichos widget.
Me explico, en una pagina independiente necesito llamar a ese widget varias veces, pero al hacerlo, resulta que no son instancias diferentes, ya que al manipular uno los demás también se mueven la mismo tiempo.
Como hago para independizarlos, ya provee con un GlobalKey y sin éxito.
Hasta he enviado un identificador independiente por cada widget y tampoco.
Espero me explique, de antemano te felicito por este componente, muchas gracias por todo.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.