-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Atulin/dev
Dev
- Loading branch information
Showing
13 changed files
with
232 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
android/app/src/main/java/angius/com/chryssibooru/MainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class FilterSheet extends StatefulWidget { | ||
FilterSheet({ | ||
@required this.safe, @required this.questionable, @required this.explicit, | ||
@required this.safeChanged, @required this.questionableChanged, @required this.explicitChanged | ||
}); | ||
|
||
final bool safe; | ||
final bool questionable; | ||
final bool explicit; | ||
final ValueChanged safeChanged; | ||
final ValueChanged questionableChanged; | ||
final ValueChanged explicitChanged; | ||
|
||
@override | ||
_FilterSheet createState() => _FilterSheet(); | ||
} | ||
|
||
class _FilterSheet extends State<FilterSheet> { | ||
bool _safe; | ||
bool _questionable; | ||
bool _explicit; | ||
|
||
@override | ||
void initState() { | ||
_safe = widget.safe; | ||
_questionable = widget.questionable; | ||
_explicit = widget.explicit; | ||
super.initState(); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return new Column( | ||
mainAxisSize: MainAxisSize.min, | ||
children: <Widget>[ | ||
new CheckboxListTile( | ||
title: new Text('Safe'), | ||
value: _safe, | ||
onChanged: (bool newValue) { | ||
setState(() { | ||
_safe = newValue; | ||
widget.safeChanged(newValue); | ||
}); | ||
}, | ||
dense: true, | ||
), | ||
new CheckboxListTile( | ||
title: new Text('Questionable'), | ||
value: _questionable, | ||
onChanged: (bool newValue) { | ||
setState(() { | ||
_questionable = newValue; | ||
widget.questionableChanged(newValue); | ||
}); | ||
}, | ||
dense: true, | ||
), | ||
new CheckboxListTile( | ||
title: new Text('Explicit'), | ||
value: _explicit, | ||
onChanged: (bool newValue) { | ||
setState(() { | ||
_explicit = newValue; | ||
widget.explicitChanged(newValue); | ||
}); | ||
}, | ||
dense: true, | ||
), | ||
new ListTile( | ||
|
||
) | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.