added screen_brightness
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:screen_brightness/screen_brightness.dart';
|
||||||
|
|
||||||
import 'appSharePlatformView.dart';
|
import 'appSharePlatformView.dart';
|
||||||
|
|
||||||
@@ -10,6 +11,18 @@ class QrShareView extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _QrShareViewState extends State<QrShareView> {
|
class _QrShareViewState extends State<QrShareView> {
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
ScreenBrightness.instance.setApplicationScreenBrightness(1.0);
|
||||||
|
super.initState();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
ScreenBrightness.instance.resetApplicationScreenBrightness();
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => DefaultTabController(
|
Widget build(BuildContext context) => DefaultTabController(
|
||||||
length: 2,
|
length: 2,
|
||||||
|
|||||||
Reference in New Issue
Block a user