Skip to content

Commit

Permalink
Merge pull request #184 from Sh1vT/some_fixes
Browse files Browse the repository at this point in the history
removed unused imports and fixed WidgetSateProperty errors
  • Loading branch information
sapatevaibhav authored Jun 22, 2024
2 parents f4e7fc0 + 13c9766 commit 2e54c35
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/pages/fruits.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class _FruitsPageState extends State<FruitsPage> {
),
ElevatedButton(
style: ButtonStyle(
fixedSize: WidgetStateProperty.all(
fixedSize: MaterialStateProperty.all(
Size(MediaQuery.of(context).size.width * .3, 50))),
onPressed: () {
if (AppConstants.Fruits[_currentIndex].isfruit == true) {
Expand All @@ -131,7 +131,7 @@ class _FruitsPageState extends State<FruitsPage> {
),
ElevatedButton(
style: ButtonStyle(
fixedSize: WidgetStateProperty.all(
fixedSize: MaterialStateProperty.all(
Size(MediaQuery.of(context).size.width * .3, 50))),
onPressed: () {
if (AppConstants.Fruits[_currentIndex].isfruit == false) {
Expand Down
1 change: 0 additions & 1 deletion lib/pages/home.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:adaptive_theme/adaptive_theme.dart';
import 'package:flutter/material.dart';
import 'package:learn/utils/assets_path.dart';
import 'package:learn/utils/const_dimensions.dart';
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/modules/atoz.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class _PopupDialogState extends State<_PopupDialog> {
const SizedBox(height: ConstantDimensions.heightMedium),
ElevatedButton(
style: ButtonStyle(
backgroundColor: WidgetStateProperty.all(
backgroundColor: MaterialStateProperty.all(
const Color.fromARGB(216, 233, 101, 92),
),
),
Expand Down Expand Up @@ -268,8 +268,8 @@ class _AtoZState extends State<AtoZ> {
child: ElevatedButton(
style: ButtonStyle(
backgroundColor: isTimerEnabled
? WidgetStateProperty.all(Colors.green)
: WidgetStateProperty.all(Colors.red),
? MaterialStateProperty.all(Colors.green)
: MaterialStateProperty.all(Colors.red),
),
onPressed: () {
setState(() {
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/modules/seasons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class _SeasonPopupState extends State<SeasonPopup> {
),
ElevatedButton(
style: ButtonStyle(
backgroundColor: WidgetStateProperty.all(Colors.red),
backgroundColor: MaterialStateProperty.all(Colors.red),
),
onPressed: () {
Navigator.of(context).pop();
Expand Down
2 changes: 0 additions & 2 deletions lib/widgets/drawer.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import 'package:flutter/material.dart';
// import 'package:flutter_svg/flutter_svg.dart';
import 'package:learn/utils/assets_path.dart';
import 'package:learn/utils/route/route_constant.dart';

class MyDrawer extends StatelessWidget {
Expand Down

0 comments on commit 2e54c35

Please sign in to comment.