1
0
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:
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:flutter/material.dart';
import 'package:jisho_study_tool/routing/routes.dart';
import '../../../../../models/themes/theme.dart'; import '../../../../../models/themes/theme.dart';
import 'search_chip.dart'; import 'search_chip.dart';
@ -26,13 +27,16 @@ class Antonyms extends StatelessWidget {
runSpacing: 5, runSpacing: 5,
children: antonyms children: antonyms
.map( .map(
(a) => SearchChip( (a) => InkWell(
onTap: () => Navigator.pushNamed(context, Routes.search, arguments: a),
child: SearchChip(
text: a, text: a,
colors: const ColorSet( colors: const ColorSet(
foreground: Colors.white, foreground: Colors.white,
background: Colors.blue, background: Colors.blue,
), ),
), ),
),
) )
.toList(), .toList(),
) )