mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-22 19:15:27 +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() {
|
||||
var textStyle;
|
||||
TextStyle? textStyle;
|
||||
if (widget.useButtonTheme) {
|
||||
textStyle = Theme.of(context).textTheme.labelLarge;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ class ConfigItem extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var textStyle;
|
||||
TextStyle textStyle;
|
||||
if (Platform.isAndroid) {
|
||||
textStyle = Theme.of(context).textTheme.labelLarge!.copyWith(fontWeight: FontWeight.normal);
|
||||
} else {
|
||||
|
|
|
@ -2,6 +2,7 @@ import 'dart:io';
|
|||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:mobile_nebula/components/SpecialButton.dart';
|
||||
import 'package:mobile_nebula/services/utils.dart';
|
||||
|
||||
|
@ -25,7 +26,7 @@ class ConfigPageItem extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var theme;
|
||||
dynamic theme;
|
||||
|
||||
if (Platform.isAndroid) {
|
||||
final origTheme = Theme.of(context);
|
||||
|
|
Loading…
Reference in a new issue