|
|
|
|
@ -1,12 +1,5 @@
|
|
|
|
|
import 'dart:developer';
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|
|
|
|
import 'package:http/http.dart';
|
|
|
|
|
import 'package:matrix/matrix.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:fluffychat/pangea/constants/language_keys.dart';
|
|
|
|
|
import 'package:fluffychat/pangea/controllers/contextual_definition_controller.dart';
|
|
|
|
|
import 'package:fluffychat/pangea/controllers/pangea_controller.dart';
|
|
|
|
|
@ -18,6 +11,12 @@ import 'package:fluffychat/pangea/widgets/common/bot_face_svg.dart';
|
|
|
|
|
import 'package:fluffychat/pangea/widgets/common/p_circular_loader.dart';
|
|
|
|
|
import 'package:fluffychat/pangea/widgets/igc/card_header.dart';
|
|
|
|
|
import 'package:fluffychat/widgets/matrix.dart';
|
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|
|
|
|
import 'package:http/http.dart';
|
|
|
|
|
import 'package:matrix/matrix.dart';
|
|
|
|
|
|
|
|
|
|
import '../../models/word_data_model.dart';
|
|
|
|
|
import '../flag.dart';
|
|
|
|
|
import 'card_error_widget.dart';
|
|
|
|
|
@ -178,7 +177,6 @@ class WordDataCardView extends StatelessWidget {
|
|
|
|
|
return Scrollbar(
|
|
|
|
|
thumbVisibility: true,
|
|
|
|
|
controller: scrollController,
|
|
|
|
|
child: Expanded(
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
controller: scrollController,
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -195,8 +193,7 @@ class WordDataCardView extends StatelessWidget {
|
|
|
|
|
style: BotStyle.text(context),
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 5.0),
|
|
|
|
|
if (controller.wordData != null &&
|
|
|
|
|
controller.wordNetError == null)
|
|
|
|
|
if (controller.wordData != null && controller.wordNetError == null)
|
|
|
|
|
WordNetInfo(
|
|
|
|
|
wordData: controller.wordData!,
|
|
|
|
|
activeL1: controller.activeL1!,
|
|
|
|
|
@ -230,7 +227,6 @@ class WordDataCardView extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|