|
|
|
@ -3,16 +3,15 @@ import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/Text.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/TextFields.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_buttons_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/divider_with_spaces_around.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/network_base_view.dart';
|
|
|
|
|
import 'package:eva_icons_flutter/eva_icons_flutter.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
import 'app-textfield-custom.dart';
|
|
|
|
|
import 'app_texts_widget.dart';
|
|
|
|
|
|
|
|
|
|
class MasterKeyCheckboxSearchWidget extends StatefulWidget {
|
|
|
|
@ -56,7 +55,16 @@ class _MasterKeyCheckboxSearchWidgetState extends State<MasterKeyCheckboxSearchW
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.62,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
border: Border.fromBorderSide(BorderSide(
|
|
|
|
|
color: Colors.grey.shade400,
|
|
|
|
|
width: 0.4,
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.60,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
@ -64,18 +72,21 @@ class _MasterKeyCheckboxSearchWidgetState extends State<MasterKeyCheckboxSearchW
|
|
|
|
|
color: Colors.white),
|
|
|
|
|
child: ListView(
|
|
|
|
|
children: [
|
|
|
|
|
TextFields(
|
|
|
|
|
hintText: widget.hintSearchText ?? TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.searchHistory,
|
|
|
|
|
borderWidth: 0.0,
|
|
|
|
|
padding: EdgeInsets.all(20),
|
|
|
|
|
borderRadius: 0,
|
|
|
|
|
suffixIcon: EvaIcons.search,
|
|
|
|
|
AppTextFieldCustom(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.070,
|
|
|
|
|
hintText: TranslationBase.of(context).searchHistory,
|
|
|
|
|
isDropDown: true,
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
// controller: filteredSearchController,
|
|
|
|
|
onChanged: (value) {
|
|
|
|
|
filterSearchResults(value);
|
|
|
|
|
},
|
|
|
|
|
suffixIcon: Icon(
|
|
|
|
|
Icons.search,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
// SizedBox(height: 15,),
|
|
|
|
|
DividerWithSpacesAround(),
|
|
|
|
|
Container(
|
|
|
|
|