mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 14:02:48 +00:00
Changed design dns rewrites
This commit is contained in:
parent
cddc964276
commit
665eb5a0c2
1 changed files with 58 additions and 60 deletions
|
@ -123,71 +123,69 @@ class _DnsRewritesScreenState extends State<DnsRewritesScreen> {
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
padding: const EdgeInsets.only(top: 0),
|
padding: const EdgeInsets.only(top: 0),
|
||||||
itemCount: rewriteRulesProvider.rewriteRules!.length,
|
itemCount: rewriteRulesProvider.rewriteRules!.length,
|
||||||
itemBuilder: (context, index) => Container(
|
itemBuilder: (context, index) => Card(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 10),
|
margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||||
decoration: BoxDecoration(
|
child: Padding(
|
||||||
border: Border(
|
padding: const EdgeInsets.only(
|
||||||
bottom: BorderSide(
|
left: 16, top: 16, bottom: 16, right: 8
|
||||||
width: 1,
|
),
|
||||||
color: Theme.of(context).colorScheme.outline.withOpacity(0.2)
|
child: Row(
|
||||||
)
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
)
|
children: [
|
||||||
),
|
Column(
|
||||||
child: Row(
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
children: [
|
||||||
children: [
|
Row(
|
||||||
Column(
|
children: [
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
Text(
|
||||||
children: [
|
"${AppLocalizations.of(context)!.domain}: ",
|
||||||
Row(
|
style: TextStyle(
|
||||||
children: [
|
fontWeight: FontWeight.w500,
|
||||||
Text(
|
color: Theme.of(context).colorScheme.onSurface
|
||||||
"${AppLocalizations.of(context)!.domain}: ",
|
),
|
||||||
style: TextStyle(
|
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
color: Theme.of(context).colorScheme.onSurface
|
|
||||||
),
|
),
|
||||||
),
|
Text(
|
||||||
Text(
|
rewriteRulesProvider.rewriteRules![index].domain,
|
||||||
rewriteRulesProvider.rewriteRules![index].domain,
|
style: TextStyle(
|
||||||
style: TextStyle(
|
color: Theme.of(context).colorScheme.onSurface
|
||||||
color: Theme.of(context).colorScheme.onSurface
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
const SizedBox(height: 3),
|
||||||
const SizedBox(height: 3),
|
Row(
|
||||||
Row(
|
children: [
|
||||||
children: [
|
Text(
|
||||||
Text(
|
"${AppLocalizations.of(context)!.answer}: ",
|
||||||
"${AppLocalizations.of(context)!.answer}: ",
|
style: TextStyle(
|
||||||
style: TextStyle(
|
fontWeight: FontWeight.w500,
|
||||||
fontWeight: FontWeight.w500,
|
color: Theme.of(context).colorScheme.onSurface
|
||||||
color: Theme.of(context).colorScheme.onSurface
|
),
|
||||||
),
|
),
|
||||||
),
|
Text(
|
||||||
Text(
|
rewriteRulesProvider.rewriteRules![index].answer,
|
||||||
rewriteRulesProvider.rewriteRules![index].answer,
|
style: TextStyle(
|
||||||
style: TextStyle(
|
color: Theme.of(context).colorScheme.onSurface
|
||||||
color: Theme.of(context).colorScheme.onSurface
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
IconButton(
|
||||||
IconButton(
|
onPressed: () => {
|
||||||
onPressed: () => {
|
showDialog(
|
||||||
showDialog(
|
context: context,
|
||||||
context: context,
|
builder: (context) => DeleteDnsRewrite(
|
||||||
builder: (context) => DeleteDnsRewrite(
|
onConfirm: () => deleteDnsRewrite(rewriteRulesProvider.rewriteRules![index])
|
||||||
onConfirm: () => deleteDnsRewrite(rewriteRulesProvider.rewriteRules![index])
|
)
|
||||||
)
|
)
|
||||||
)
|
},
|
||||||
},
|
icon: const Icon(Icons.delete),
|
||||||
icon: const Icon(Icons.delete)
|
tooltip: AppLocalizations.of(context)!.delete,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue