1
0
mirror of https://github.com/h7x4/Jisho-Study-Tool.git synced 2024-12-22 05:57:28 +01:00

Make antonyms clickable

This commit is contained in:
Oystein Kristoffer Tveit 2022-01-23 03:46:03 +01:00
parent 57f7fbf258
commit 6534378606

View File

@ -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,
),
),
),
)