mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-22 13:57:29 +01:00
Make antonyms clickable
This commit is contained in:
parent
57f7fbf258
commit
6534378606
@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:jisho_study_tool/routing/routes.dart';
|
||||
|
||||
import '../../../../../models/themes/theme.dart';
|
||||
import 'search_chip.dart';
|
||||
@ -26,11 +27,14 @@ class Antonyms extends StatelessWidget {
|
||||
runSpacing: 5,
|
||||
children: antonyms
|
||||
.map(
|
||||
(a) => SearchChip(
|
||||
text: a,
|
||||
colors: const ColorSet(
|
||||
foreground: Colors.white,
|
||||
background: Colors.blue,
|
||||
(a) => InkWell(
|
||||
onTap: () => Navigator.pushNamed(context, Routes.search, arguments: a),
|
||||
child: SearchChip(
|
||||
text: a,
|
||||
colors: const ColorSet(
|
||||
foreground: Colors.white,
|
||||
background: Colors.blue,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user