Comments (4)
to set it to null at disposal automatically
Hi. I think this is quite clear. The it
here is your CameraController
instance that should be handled at the level of your code.
This doesn't seem to be an appropriate bug or feature request, so I'm going to close the issue. If you disagree, please write in the comments with more information and I will reopen it.
from flutter.
wouldn't not create unnecessary bugs like in my case
Could you elaborate on which bug was created in your case? Per my understanding, _controller
is a nullable variable of CameraController
, you can set it to null manually, right?
from flutter.
@huycozy Thanks for your comments. It's more of a suggestion and I'm not even sure whether it's a good idea. Just sharing my experience.
-
Yes, I can set it to null manually.
-
I expected that disposing of the controller would also set it to null: maybe I was having a wrong expectation. So, that caused the bugs since the next time I was trying to access the controlled the disposed one was not a null but lived in a _controller variable.
-
I fixed the bug by manually setting it to null. I was just trying to see whether it would not be a good idea to set it to null at disposal automatically. I'd love to your views on that.
from flutter.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
from flutter.
Related Issues (20)
- [tool_crash] RPCError HOT 2
- [go_router] [android] go_router recreates every widget class at parent locations. HOT 4
- Hot Reload (web) HOT 1
- [tool_crash] WebDriverException HOT 2
- Kernel snapshot input dependency tracking not working
- [CP] Beta/3.22 Platform view android 14 workaround
- `et run` throws `UnimplementedError` for Android on Windows HOT 4
- Execution failed for task ':app:minifyDevReleaseWithR8' HOT 5
- Stale data on bots is interfering with the GN step HOT 8
- linux-45 lost external connection phone device. HOT 2
- The `flutter update-packages --force-upgrade` command fails and it can't find `_macros` package HOT 2
- Inconsistent Height Rendering for Korean Letters in Text Widgets HOT 2
- Crash on Google Sign-In on iOS HOT 2
- Flutter for web crashes on older machines, iPhone, iPads HOT 10
- [Impeller] Commands with no vertex buffer but non-zero vertex counts are incorrectly dropped.
- `showSemanticsDebugger` to `true` is not working on Android or web HOT 4
- [et] no-op builds when a target is specified take ~10 to 15 seconds instead of < 0.1 seconds with Ninja directly. HOT 16
- [et] Allow specifying job counts on RBE jobs. HOT 1
- win-1 marked as dead. HOT 2
- mac-29 lost external connection phone device. HOT 2
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.
from flutter.