mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
ChecklistEditor: Make the Add Item more tappable
I would often tap on it and nothing would happen.
This commit is contained in:
@ -20,3 +20,6 @@ settings:
|
||||
usageStats: Collect Anonymous Usage Statistics
|
||||
debug: Debug App
|
||||
debugLog: Look under the hood
|
||||
editors:
|
||||
checklist:
|
||||
add: Add Item
|
||||
|
@ -1,6 +1,7 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:gitjournal/core/checklist.dart';
|
||||
@ -379,7 +380,7 @@ class AddItemButton extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
var style = Theme.of(context).textTheme.subhead;
|
||||
|
||||
return ListTile(
|
||||
var tile = ListTile(
|
||||
dense: true,
|
||||
leading: Row(
|
||||
children: <Widget>[
|
||||
@ -397,10 +398,12 @@ class AddItemButton extends StatelessWidget {
|
||||
],
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
),
|
||||
title: GestureDetector(
|
||||
onTap: onPressed,
|
||||
child: Text("Add Item", style: style),
|
||||
),
|
||||
title: Text(tr("editors.checklist.add"), style: style),
|
||||
);
|
||||
|
||||
return GestureDetector(
|
||||
onTap: onPressed,
|
||||
child: tile,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user