|
|
@ -193,12 +193,14 @@ class _ReaderWidgetState extends State<ReaderWidget> |
|
|
|
case AppLifecycleState.inactive: |
|
|
|
case AppLifecycleState.inactive: |
|
|
|
case AppLifecycleState.hidden: |
|
|
|
case AppLifecycleState.hidden: |
|
|
|
case AppLifecycleState.paused: |
|
|
|
case AppLifecycleState.paused: |
|
|
|
|
|
|
|
case AppLifecycleState.hidden: |
|
|
|
controller?.dispose(); |
|
|
|
controller?.dispose(); |
|
|
|
setState(() { |
|
|
|
setState(() { |
|
|
|
_isCameraOn = false; |
|
|
|
_isCameraOn = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case AppLifecycleState.detached: |
|
|
|
case AppLifecycleState.detached: |
|
|
|
|
|
|
|
default: |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|