Skip to content

Commit

Permalink
Merge pull request #154 from guyluz11/dev
Browse files Browse the repository at this point in the history
Fixed several warnings
  • Loading branch information
guyluz11 committed Jul 29, 2023
2 parents c9bb834 + 0d1146c commit 15f018f
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 43 deletions.
1 change: 1 addition & 0 deletions lib/my_singleton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ class MySingleton {
/// Set the current page name
static Set<String>? setCurrentPageName(String currentPageName) {
_currentPageName = currentPageName;
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AboutPageContentDesktop extends StatelessWidget {
child: Scaffold(
drawer:
sizingInformation.deviceScreenType == DeviceScreenType.mobile
? NavigationDrawer(
? const NavigationDrawer(
children: [],
)
: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ class EasyToSetUpBenefitBlock extends StatelessWidget {
const SizedBox(
height: 30,
),
Row(
const Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: const <Widget>[
children: <Widget>[
FaIcon(
FontAwesomeIcons.check,
color: Colors.green,
Expand All @@ -81,9 +81,9 @@ class EasyToSetUpBenefitBlock extends StatelessWidget {
const SizedBox(
height: 10,
),
Row(
const Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: const <Widget>[
children: <Widget>[
FaIcon(
FontAwesomeIcons.check,
color: Colors.green,
Expand All @@ -107,9 +107,9 @@ class EasyToSetUpBenefitBlock extends StatelessWidget {
const SizedBox(
height: 10,
),
Row(
const Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: const <Widget>[
children: <Widget>[
FaIcon(
FontAwesomeIcons.check,
color: Colors.green,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ class EasyToUseBenefitBlock extends StatelessWidget {
const SizedBox(
height: 30,
),
Row(
const Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: const <Widget>[
children: <Widget>[
FaIcon(
FontAwesomeIcons.check,
color: Colors.green,
Expand All @@ -83,9 +83,9 @@ class EasyToUseBenefitBlock extends StatelessWidget {
const SizedBox(
height: 10,
),
Row(
const Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: const <Widget>[
children: <Widget>[
FaIcon(
FontAwesomeIcons.check,
color: Colors.green,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class PrivacyAndOpenSourceBenefitBlock extends StatelessWidget {
const SizedBox(
height: 30,
),
Row(
const Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: const <Widget>[
children: <Widget>[
FaIcon(
FontAwesomeIcons.check,
color: Colors.green,
Expand All @@ -88,9 +88,9 @@ class PrivacyAndOpenSourceBenefitBlock extends StatelessWidget {
const SizedBox(
height: 10,
),
Row(
const Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: const <Widget>[
children: <Widget>[
FaIcon(
FontAwesomeIcons.check,
color: Colors.green,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ class HomePageFirstPart extends StatelessWidget {
child: SizedBox(
width: screenSize.width / 2,
height: screenSize.height / 2.3,
child:
YoutubeVideoPlayer(youtubeVideoId: 'o5owbiQahnY'),
child: const YoutubeVideoPlayer(
youtubeVideoId: 'o5owbiQahnY'),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import 'package:flutter/material.dart';
class HomePageSecondPart extends StatelessWidget {
@override
Widget build(BuildContext context) {
final Size screenSize = MediaQuery.of(context).size;

return Stack(
children: [
SizedBox.expand(
Expand All @@ -34,20 +32,20 @@ class HomePageSecondPart extends StatelessWidget {
Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Flexible(
const Flexible(
flex: 2,
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
children: [
const BorderTextWithShadow(
BorderTextWithShadow(
'About us',
fontSize: 35,
fontWeight: FontWeight.bold,
),
const SizedBox(height: 70),
SizedBox(height: 70),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
children: [
BorderTextWithShadow(
'CyBear Jinni ',
fontSize: 25,
Expand Down
30 changes: 14 additions & 16 deletions lib/presentation/new_home_page/widgets/home_page_thired_part.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import 'package:flutter/material.dart';
class HomePageThiredPart extends StatelessWidget {
@override
Widget build(BuildContext context) {
final Size screenSize = MediaQuery.of(context).size;

return Stack(
children: [
SizedBox.expand(
Expand All @@ -22,11 +20,11 @@ class HomePageThiredPart extends StatelessWidget {
Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Flexible(
const Flexible(
flex: 3,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
children: [
BorderTextWithShadow(
'How to Setup',
fontSize: 35,
Expand Down Expand Up @@ -65,9 +63,9 @@ class HomePageThiredPart extends StatelessWidget {
const Icon(Icons.error),
),
const SizedBox(height: 32),
Row(
const Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: const [
children: [
BorderTextWithShadow(
'i. ',
fontSize: 20,
Expand All @@ -84,9 +82,9 @@ class HomePageThiredPart extends StatelessWidget {
],
),
const SizedBox(height: 10),
Row(
const Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: const [
children: [
BorderTextWithShadow(
'ii. ',
fontSize: 20,
Expand All @@ -103,9 +101,9 @@ class HomePageThiredPart extends StatelessWidget {
],
),
const SizedBox(height: 10),
Row(
const Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: const [
children: [
BorderTextWithShadow(
'iii. ',
fontSize: 20,
Expand Down Expand Up @@ -143,9 +141,9 @@ class HomePageThiredPart extends StatelessWidget {
const Icon(Icons.error),
),
const SizedBox(height: 32),
Row(
const Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: const [
children: [
BorderTextWithShadow(
'i. ',
fontSize: 20,
Expand All @@ -162,9 +160,9 @@ class HomePageThiredPart extends StatelessWidget {
],
),
const SizedBox(height: 10),
Row(
const Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: const [
children: [
BorderTextWithShadow(
'ii. ',
fontSize: 20,
Expand All @@ -181,9 +179,9 @@ class HomePageThiredPart extends StatelessWidget {
],
),
const SizedBox(height: 10),
Row(
const Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: const [
children: [
BorderTextWithShadow(
'iii. ',
fontSize: 20,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
class NewHomePageWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
final Size screenSize = MediaQuery.of(context).size;

return BlocBuilder<NewHomePageBloc, NewHomePageState>(
builder: (context, state) {
return state.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:youtube_player_iframe/youtube_player_iframe.dart';

class YoutubeVideoPlayer extends StatefulWidget {
YoutubeVideoPlayer({
const YoutubeVideoPlayer({
required this.youtubeVideoId,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DrawerItemOnClickStartFunction extends StatelessWidget {
final IconData icon;

/// What function to run if clicked
final Function onClickFunction;
final Function(BuildContext context) onClickFunction;

@override
Widget build(BuildContext context) {
Expand Down

0 comments on commit 15f018f

Please sign in to comment.