Skip to content

Commit d0d38f6

Browse files
author
Akshatji800
committed
Resolves CI failing lint and build issues
1 parent e04e1c0 commit d0d38f6

File tree

7 files changed

+245
-153
lines changed

7 files changed

+245
-153
lines changed

.github/workflows/dart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
java-version: '12.x'
1818
- uses: subosito/flutter-action@v1
1919
with:
20-
flutter-version: '2.5.0'
20+
flutter-version: '3.0.0'
2121
- run: flutter pub get
2222
# - run: flutter analyze
2323
- run: flutter format -n --set-exit-if-changed .

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ android {
3131
multiDexEnabled true
3232
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3333
applicationId "com.hustlecreatives.flood_mobile"
34-
minSdkVersion 16
34+
minSdkVersion 19
3535
targetSdkVersion 31
3636
versionCode flutterVersionCode.toInteger()
3737
versionName flutterVersionName

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.1.0'
9+
classpath 'com.android.tools.build:gradle:7.1.2'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip

lib/Components/filter_by_status.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ enum FilterValue {
1616
active,
1717
inactive
1818
}
19+
1920
FilterValue? filterStatus = FilterValue.all;
2021
String trackerURISelected = '';
2122

@@ -254,7 +255,7 @@ class _FilterByStatusState extends State<FilterByStatus> {
254255
title: Text(trackerURIsList[index].toString(),
255256
style: TextStyle(
256257
color:
257-
ThemeProvider.theme.textTheme.bodyText1?.color,
258+
ThemeProvider.theme.textTheme.bodyText1?.color,
258259
fontFamily: 'Montserrat',
259260
fontSize: 16,
260261
fontWeight: FontWeight.normal)),
@@ -276,4 +277,4 @@ class _FilterByStatusState extends State<FilterByStatus> {
276277
),
277278
);
278279
}
279-
}
280+
}

lib/Pages/torrent_screen.dart

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -139,45 +139,51 @@ class _TorrentScreenState extends State<TorrentScreen> {
139139
horizontal: 20, vertical: 20),
140140
hintText: 'Search Torrent',
141141
suffixIcon: Padding(
142-
padding: const EdgeInsets.only(right: 5),
142+
padding:
143+
const EdgeInsets.only(right: 5),
143144
child: ActionChip(
144145
padding: EdgeInsets.all(0),
145146
avatar: ClipRRect(
146-
borderRadius: BorderRadius.circular(4),
147-
child: Container(
148-
decoration: BoxDecoration(
149-
borderRadius: BorderRadius.circular(0),
150-
color: Colors.green,
151-
),
152-
height: 50,
153-
width: 50,
154-
child: Icon(
155-
Icons.filter_list_alt,
156-
color: Colors.white,
157-
size: 20,
158-
),
159-
)
160-
),
161-
label: Text(trackerURISelected == 'all' ||
162-
trackerURISelected == 'null' ||
163-
trackerURISelected == ''
164-
? '${filterStatus.toString().split(".").last}'
165-
: trackerURISelected.length > 12 ? trackerURISelected.substring(0, 12) + '...' : trackerURISelected,
147+
borderRadius:
148+
BorderRadius.circular(4),
149+
child: Container(
150+
decoration: BoxDecoration(
151+
borderRadius:
152+
BorderRadius.circular(0),
153+
color: Colors.green,
154+
),
155+
height: 50,
156+
width: 50,
157+
child: Icon(
158+
Icons.filter_list_alt,
159+
color: Colors.white,
160+
size: 20,
161+
),
162+
)),
163+
label: Text(
164+
trackerURISelected == 'all' ||
165+
trackerURISelected ==
166+
'null' ||
167+
trackerURISelected == ''
168+
? '${filterStatus.toString().split(".").last}'
169+
: trackerURISelected.length > 12
170+
? trackerURISelected
171+
.substring(0, 12) +
172+
'...'
173+
: trackerURISelected,
166174
style: TextStyle(
167175
color: ThemeProvider
168176
.theme.primaryColorDark,
169177
fontSize: 15,
170178
fontWeight: FontWeight.normal,
171-
),),
179+
),
180+
),
172181
onPressed: () {
173182
showModalBottomSheet(
174183
shape: RoundedRectangleBorder(
175-
borderRadius:
176-
BorderRadius.only(
177-
topRight:
178-
Radius.circular(15),
179-
topLeft:
180-
Radius.circular(15),
184+
borderRadius: BorderRadius.only(
185+
topRight: Radius.circular(15),
186+
topLeft: Radius.circular(15),
181187
),
182188
),
183189
isScrollControlled: true,
@@ -191,7 +197,8 @@ class _TorrentScreenState extends State<TorrentScreen> {
191197
},
192198
backgroundColor: Colors.transparent,
193199
shape: RoundedRectangleBorder(
194-
borderRadius: BorderRadius.circular(5),
200+
borderRadius:
201+
BorderRadius.circular(5),
195202
side: BorderSide(
196203
width: 1,
197204
color: Colors.blueGrey,

0 commit comments

Comments
 (0)