mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-23 11:35:26 +00:00
dart fix --apply --code=prefer_typing_uninitialized_variables
This commit is contained in:
parent
b48971f130
commit
7fd9ff5abc
3 changed files with 4 additions and 3 deletions
|
@ -32,7 +32,7 @@ class _SpecialButtonState extends State<SpecialButton> with SingleTickerProvider
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildAndroid() {
|
Widget _buildAndroid() {
|
||||||
var textStyle;
|
TextStyle? textStyle;
|
||||||
if (widget.useButtonTheme) {
|
if (widget.useButtonTheme) {
|
||||||
textStyle = Theme.of(context).textTheme.labelLarge;
|
textStyle = Theme.of(context).textTheme.labelLarge;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ class ConfigItem extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
var textStyle;
|
TextStyle textStyle;
|
||||||
if (Platform.isAndroid) {
|
if (Platform.isAndroid) {
|
||||||
textStyle = Theme.of(context).textTheme.labelLarge!.copyWith(fontWeight: FontWeight.normal);
|
textStyle = Theme.of(context).textTheme.labelLarge!.copyWith(fontWeight: FontWeight.normal);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -2,6 +2,7 @@ import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:mobile_nebula/components/SpecialButton.dart';
|
import 'package:mobile_nebula/components/SpecialButton.dart';
|
||||||
import 'package:mobile_nebula/services/utils.dart';
|
import 'package:mobile_nebula/services/utils.dart';
|
||||||
|
|
||||||
|
@ -25,7 +26,7 @@ class ConfigPageItem extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
var theme;
|
dynamic theme;
|
||||||
|
|
||||||
if (Platform.isAndroid) {
|
if (Platform.isAndroid) {
|
||||||
final origTheme = Theme.of(context);
|
final origTheme = Theme.of(context);
|
||||||
|
|
Loading…
Reference in a new issue