Skip to content

Commit

Permalink
Workflow Update
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshusharma89 committed Oct 26, 2020
1 parent 94a5d07 commit 1d5dce6
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 53 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ jobs:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
# Adjust to the flutter version you are working with
flutter-version: "1.20.4"
channel: beta
- name: Get version.txt
uses: actions/download-artifact@v2
with:
Expand Down
104 changes: 53 additions & 51 deletions lib/screens/medium_articles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MediumArticlesState extends State<MediumArticles> {
body: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: mediumArticleNotifier.getArticleList().length != 0
Expand Down Expand Up @@ -110,61 +110,63 @@ class MediumArticlesState extends State<MediumArticles> {
Text('Search Medium Articles by Author name.'),
),
),
],
)),
floatingActionButton: Form(
key: _formKey,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
flex: 1,
child: TextFormField(
controller: myController,
keyboardType: TextInputType.text,
decoration: new InputDecoration(
border: OutlineInputBorder(),
contentPadding: EdgeInsets.only(
left: 15, bottom: 11, top: 11, right: 15),
hintText: "Enter Username",
// hintStyle: TextStyle(color: Colors.white),
Padding(
padding: const EdgeInsets.symmetric(vertical: 5),
child: Form(
key: _formKey,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
flex: 1,
child: TextFormField(
controller: myController,
keyboardType: TextInputType.text,
decoration: new InputDecoration(
border: OutlineInputBorder(),
contentPadding: EdgeInsets.only(
left: 15, bottom: 11, top: 11, right: 15),
hintText: "Enter Username",
// hintStyle: TextStyle(color: Colors.white),
),
validator: (val) {
if (val.isEmpty) {
return "Username can't be empty";
}
return null;
},
style: TextStyle(color: Colors.white),
),
validator: (val) {
if (val.isEmpty) {
return "Username can't be empty";
),
SizedBox(
width: 10,
),
RaisedButton(
child: Text(
mediumArticleNotifier.getArticleList().length == 0
? "Fetch"
: "Clear"),
onPressed: () {
if (mediumArticleNotifier.getArticleList().length !=
0) {
mediumArticleNotifier.clearArticleList();
mediumArticleNotifier.setloader(false);
} else {
if (_formKey.currentState.validate()) {
_formKey.currentState.save();
mediumArticleNotifier.setloader(true);
FetchService.getPosts(
mediumArticleNotifier, myController.text);
}
}
return null;
},
style: TextStyle(color: Colors.white),
),
),
SizedBox(
width: 10,
),
RaisedButton(
child: Text(
mediumArticleNotifier.getArticleList().length == 0
? "Fetch"
: "Clear"),
onPressed: () {
if (mediumArticleNotifier.getArticleList().length !=
0) {
mediumArticleNotifier.clearArticleList();
mediumArticleNotifier.setloader(false);
} else {
if (_formKey.currentState.validate()) {
_formKey.currentState.save();
mediumArticleNotifier.setloader(true);
FetchService.getPosts(
mediumArticleNotifier, myController.text);
}
}
},
),
],
],
),
),
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
)
],
)),
);
}
}

0 comments on commit 1d5dce6

Please sign in to comment.