fixed project problems (warnings)
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
// ignore_for_file: dead_code
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
import 'package:refilc/api/providers/live_card_provider.dart';
|
||||
import 'package:refilc/theme/colors/colors.dart';
|
||||
import 'package:refilc/ui/date_widget.dart';
|
||||
import 'package:refilc/utils/format.dart';
|
||||
import 'package:i18n_extension/i18n_extension.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:refilc_mobile_ui/common/soon_alert/soon_alert.dart';
|
||||
import 'package:refilc_plus/providers/premium_provider.dart';
|
||||
import 'package:animated_list_plus/animated_list_plus.dart';
|
||||
import 'package:refilc/api/providers/update_provider.dart';
|
||||
@@ -243,6 +246,34 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 8.0, vertical: 5.0),
|
||||
child: IconButton(
|
||||
splashRadius: 24.0,
|
||||
onPressed: () async {
|
||||
// Navigator.of(context, rootNavigator: true)
|
||||
// .push(PageRouteBuilder(
|
||||
// pageBuilder: (context, animation, secondaryAnimation) =>
|
||||
// PremiumFSTimetable(
|
||||
// controller: controller,
|
||||
// ),
|
||||
// ))
|
||||
// .then((_) {
|
||||
// SystemChrome.setPreferredOrientations(
|
||||
// [DeviceOrientation.portraitUp]);
|
||||
// setSystemChrome(context);
|
||||
// });
|
||||
SoonAlert.show(context: context);
|
||||
// await showSendMessageSheet(context);
|
||||
},
|
||||
icon: Icon(
|
||||
FeatherIcons.messageCircle,
|
||||
color: AppColors.of(context).text,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Profile Icon
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 24.0),
|
||||
|
||||
@@ -14,7 +14,7 @@ class ErrorReportScreen extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: Color(0xFFE3EBFB),
|
||||
backgroundColor: const Color(0xFFE3EBFB),
|
||||
body: SafeArea(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
@@ -28,7 +28,7 @@ class ErrorReportScreen extends StatelessWidget {
|
||||
child: Text(
|
||||
"ekretaYou".i18n,
|
||||
style: TextStyle(
|
||||
color: Color(0xFF011234).withOpacity(0.7),
|
||||
color: const Color(0xFF011234).withOpacity(0.7),
|
||||
fontSize: 24.0,
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
@@ -120,7 +120,7 @@ class ErrorReportScreen extends StatelessWidget {
|
||||
const EdgeInsets.symmetric(vertical: 14.0),
|
||||
),
|
||||
backgroundColor: MaterialStateProperty.all(
|
||||
Color(0xFFF3F7FE),
|
||||
const Color(0xFFF3F7FE),
|
||||
),
|
||||
shape: MaterialStateProperty.all(
|
||||
RoundedRectangleBorder(
|
||||
@@ -128,7 +128,7 @@ class ErrorReportScreen extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
side: MaterialStateProperty.all(
|
||||
BorderSide(width: 1.0, color: Color(0xFFC7D3EB)),
|
||||
const BorderSide(width: 1.0, color: Color(0xFFC7D3EB)),
|
||||
),
|
||||
),
|
||||
child: Text(
|
||||
@@ -244,7 +244,7 @@ class ErrorDetail extends StatelessWidget {
|
||||
const EdgeInsets.symmetric(horizontal: 6.5, vertical: 4.0),
|
||||
margin: const EdgeInsets.only(top: 4.0),
|
||||
decoration: BoxDecoration(
|
||||
color: Color.fromARGB(255, 218, 218, 218),
|
||||
color: const Color.fromARGB(255, 218, 218, 218),
|
||||
borderRadius: BorderRadius.circular(4.0)),
|
||||
child: Text(
|
||||
content,
|
||||
|
||||
@@ -18,8 +18,9 @@ List<School> searchSchools(List<School> all, String pattern) {
|
||||
|
||||
if (contains == pattern.split(" ").length) results.add(item);
|
||||
|
||||
if (item.instituteCode.toLowerCase().specialChars().contains(pattern))
|
||||
if (item.instituteCode.toLowerCase().specialChars().contains(pattern)) {
|
||||
results.add(item);
|
||||
}
|
||||
}
|
||||
|
||||
results.sort((a, b) => a.name.compareTo(b.name));
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// ignore_for_file: deprecated_member_use
|
||||
|
||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:refilc/api/providers/update_provider.dart';
|
||||
@@ -201,9 +203,7 @@ class NavigationScreenState extends State<NavigationScreen>
|
||||
@override
|
||||
void didChangePlatformBrightness() {
|
||||
if (settings.theme == ThemeMode.system) {
|
||||
// ignore: deprecated_member_use
|
||||
Brightness? brightness =
|
||||
// ignore: deprecated_member_use
|
||||
WidgetsBinding.instance.window.platformBrightness;
|
||||
Provider.of<ThemeModeObserver>(context, listen: false).changeTheme(
|
||||
brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark);
|
||||
@@ -242,7 +242,6 @@ class NavigationScreenState extends State<NavigationScreen>
|
||||
// SvgTheme navIcTheme =
|
||||
// SvgTheme(currentColor: Theme.of(context).colorScheme.primary);
|
||||
|
||||
// ignore: deprecated_member_use
|
||||
return WillPopScope(
|
||||
onWillPop: () async {
|
||||
if (_navigatorState.currentState?.canPop() ?? false) {
|
||||
|
||||
@@ -1016,7 +1016,7 @@ class SettingsScreenState extends State<SettingsScreen>
|
||||
);
|
||||
showErrorScreen(context, fakeErrorDetails);
|
||||
},
|
||||
child: Text('hiba_tesztelese'),
|
||||
child: const Text('hiba_tesztelese'),
|
||||
),
|
||||
|
||||
// developer options
|
||||
|
||||
Reference in New Issue
Block a user