Skip to content

Commit

Permalink
chore: dart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PiTrem committed Jul 15, 2024
1 parent 2d12bab commit 30faefc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/screens/init_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class _InitScreenState extends State<InitScreen> {
return Scaffold(
body: Container(
padding: const EdgeInsets.all(8.0),
child: Column(
child: const Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: const <Widget>[
children: <Widget>[
Text('Init app...'),
],
),
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/login_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class _LoginScreenState extends State<LoginScreen> {
),
body: Container(
padding: const EdgeInsets.all(16.0),
child: Column(
child: const Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: const <Widget>[
children: <Widget>[
LoginForm(),
],
),
Expand Down
5 changes: 2 additions & 3 deletions lib/screens/menu_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import 'package:chemobile/screens/scan_screen.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

import '../helpers/dev_print.dart';

class MenuScreen extends StatefulWidget {
const MenuScreen({Key? key}) : super(key: key);
Expand Down Expand Up @@ -102,9 +101,9 @@ class _MenuScreenState extends State<MenuScreen> {
}

Widget doubleScanIcon() {
return Row(
return const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [Icon(Icons.science), Icon(Icons.science)],
children: [Icon(Icons.science), Icon(Icons.science)],
);
}

Expand Down
4 changes: 2 additions & 2 deletions lib/screens/sample_tasks_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ class _SampleTasksScreenState extends State<SampleTasksScreen> {
}

Widget doubleScanIcon() {
return Row(
return const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [Icon(Icons.science), Icon(Icons.science)],
children: [Icon(Icons.science), Icon(Icons.science)],
);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/screens/scan_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class _ScanScreenState extends State<ScanScreen> {
String fallback = getCurrentUser(context).fullName;
SampleTask? currentTask = _sampleTasksCubit(context).currentSampleTask;

if (currentTask != null && currentTask!.targetAmountValue != null) {
if (currentTask != null && currentTask.targetAmountValue != null) {
return "Target amount value: ${currentTask.targetAmountValue} ${currentTask.targetAmountUnit}";
} else {
return fallback;
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/user_switcher_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class UserSwitcherScreen extends StatelessWidget {
),
body: Container(
padding: const EdgeInsets.all(16.0),
child: Column(
child: const Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: const <Widget>[
children: <Widget>[
UserSwitcher(),
],
),
Expand Down

0 comments on commit 30faefc

Please sign in to comment.