-
This commit is contained in:
parent
85d58da1f5
commit
6c715dcfb9
4 changed files with 1 additions and 78 deletions
|
|
@ -98,20 +98,6 @@ class _ExtensionDetailState extends ConsumerState<ExtensionDetail> {
|
|||
),
|
||||
],
|
||||
),
|
||||
if (widget.source.isNsfw!)
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red.withOpacity(0.7),
|
||||
borderRadius: BorderRadius.circular(5)),
|
||||
child: const Padding(
|
||||
padding: EdgeInsets.all(8.0),
|
||||
child: Text(
|
||||
"NSFW (18+)",
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white),
|
||||
),
|
||||
)),
|
||||
Column(
|
||||
children: [
|
||||
Text(
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ class CreateExtension extends StatefulWidget {
|
|||
|
||||
class _CreateExtensionState extends State<CreateExtension> {
|
||||
bool _isManga = false;
|
||||
bool _isNsfw = false;
|
||||
String _name = "";
|
||||
String _lang = "";
|
||||
String _baseUrl = "";
|
||||
|
|
@ -130,13 +129,6 @@ class _CreateExtensionState extends State<CreateExtension> {
|
|||
],
|
||||
),
|
||||
),
|
||||
SwitchListTile(
|
||||
title: const Text("isNsfw"),
|
||||
value: _isNsfw,
|
||||
onChanged: (value) => setState(() {
|
||||
_isNsfw = value;
|
||||
}),
|
||||
),
|
||||
SwitchListTile(
|
||||
title: const Text("isManga"),
|
||||
value: _isManga,
|
||||
|
|
@ -171,7 +163,7 @@ class _CreateExtensionState extends State<CreateExtension> {
|
|||
isAdded: true,
|
||||
isActive: true,
|
||||
version: "0.0.1",
|
||||
isNsfw: _isNsfw)
|
||||
isNsfw: false)
|
||||
..sourceCodeLanguage = _sourceCodeLanguage;
|
||||
source = source
|
||||
..isLocal = true
|
||||
|
|
@ -296,7 +288,6 @@ const mangayomiSources = [{
|
|||
"iconUrl": "${source.iconUrl}",
|
||||
"typeSource": "${source.typeSource}",
|
||||
"isManga": ${source.isManga},
|
||||
"isNsfw": ${source.isNsfw},
|
||||
"version": "${source.version}",
|
||||
"dateFormat": "",
|
||||
"dateFormatLocale": "",
|
||||
|
|
|
|||
|
|
@ -95,33 +95,6 @@ class _ExtensionListTileWidgetState
|
|||
Text(widget.source.version!,
|
||||
style:
|
||||
const TextStyle(fontWeight: FontWeight.w300, fontSize: 12)),
|
||||
if (widget.source.isNsfw!)
|
||||
Row(
|
||||
children: [
|
||||
const SizedBox(
|
||||
width: 2,
|
||||
),
|
||||
SizedBox(
|
||||
height: 15,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red.withOpacity(0.7),
|
||||
borderRadius: BorderRadius.circular(5)),
|
||||
child: const Center(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(3),
|
||||
child: Text(
|
||||
"NSFW",
|
||||
style: TextStyle(
|
||||
fontSize: 6,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white),
|
||||
),
|
||||
),
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
if (widget.source.isObsolete ?? false)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||
|
|
|
|||
|
|
@ -62,33 +62,6 @@ class SourceListTile extends StatelessWidget {
|
|||
completeLanguageName(source.lang!.toLowerCase()),
|
||||
style: const TextStyle(fontWeight: FontWeight.w300, fontSize: 12),
|
||||
),
|
||||
if (source.isNsfw!)
|
||||
Row(
|
||||
children: [
|
||||
const SizedBox(
|
||||
width: 2,
|
||||
),
|
||||
SizedBox(
|
||||
height: 15,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red.withOpacity(0.7),
|
||||
borderRadius: BorderRadius.circular(5)),
|
||||
child: const Center(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(3),
|
||||
child: Text(
|
||||
"NSFW",
|
||||
style: TextStyle(
|
||||
fontSize: 6,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white),
|
||||
),
|
||||
),
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
title: Text(source.name!),
|
||||
|
|
|
|||
Loading…
Reference in a new issue