update search border

This commit is contained in:
tzw
2021-09-13 10:17:04 +06:30
parent cf27fd59f7
commit db736ffb26
4 changed files with 4 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ class Privilege {
} else if (this.id == privilege_receiving) { } else if (this.id == privilege_receiving) {
iconData = MaterialCommunityIcons.inbox_arrow_down; iconData = MaterialCommunityIcons.inbox_arrow_down;
} else if (this.id == privilege_pickup) { } else if (this.id == privilege_pickup) {
iconData = FontAwesome.dropbox; iconData = SimpleLineIcons.direction;
} else { } else {
iconData = MaterialCommunityIcons.account_question; iconData = MaterialCommunityIcons.account_question;
} }

View File

@@ -1,17 +1,12 @@
import 'package:fcs/domain/constants.dart';
import 'package:fcs/domain/entities/carton.dart'; import 'package:fcs/domain/entities/carton.dart';
import 'package:fcs/helpers/theme.dart'; import 'package:fcs/helpers/theme.dart';
import 'package:fcs/pages/carton/model/carton_model.dart'; import 'package:fcs/pages/carton/model/carton_model.dart';
import 'package:fcs/pages/main/util.dart';
import 'package:fcs/pages/widgets/barcode_scanner.dart'; import 'package:fcs/pages/widgets/barcode_scanner.dart';
import 'package:fcs/pages/widgets/local_popup_menu_button.dart'; import 'package:fcs/pages/widgets/local_popup_menu_button.dart';
import 'package:fcs/pages/widgets/local_popupmenu.dart'; import 'package:fcs/pages/widgets/local_popupmenu.dart';
import 'package:fcs/pages/widgets/local_text.dart';
import 'package:fcs/pages/widgets/popupmenu.dart';
import 'package:fcs/pagination/paginator_listview.dart'; import 'package:fcs/pagination/paginator_listview.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_vector_icons/flutter_vector_icons.dart'; import 'package:flutter_vector_icons/flutter_vector_icons.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'carton_list_row.dart'; import 'carton_list_row.dart';
@@ -37,6 +32,7 @@ class PartSearchDelegate extends SearchDelegate<Carton> {
final ThemeData theme = Theme.of(context); final ThemeData theme = Theme.of(context);
return theme.copyWith( return theme.copyWith(
inputDecorationTheme: InputDecorationTheme( inputDecorationTheme: InputDecorationTheme(
border: InputBorder.none,
hintStyle: TextStyle( hintStyle: TextStyle(
color: theme.primaryTextTheme.caption!.color, fontSize: 14)), color: theme.primaryTextTheme.caption!.color, fontSize: 14)),
textTheme: theme.textTheme.copyWith( textTheme: theme.textTheme.copyWith(

View File

@@ -30,6 +30,7 @@ class PackageSearchDelegate extends SearchDelegate<Package> {
final ThemeData theme = Theme.of(context); final ThemeData theme = Theme.of(context);
return theme.copyWith( return theme.copyWith(
inputDecorationTheme: InputDecorationTheme( inputDecorationTheme: InputDecorationTheme(
border: InputBorder.none,
hintStyle: TextStyle( hintStyle: TextStyle(
color: theme.primaryTextTheme.caption!.color, fontSize: 14)), color: theme.primaryTextTheme.caption!.color, fontSize: 14)),
textTheme: theme.textTheme.copyWith( textTheme: theme.textTheme.copyWith(

View File

@@ -30,6 +30,7 @@ class UserSearchDelegate extends SearchDelegate<User> {
final ThemeData theme = Theme.of(context); final ThemeData theme = Theme.of(context);
return theme.copyWith( return theme.copyWith(
inputDecorationTheme: InputDecorationTheme( inputDecorationTheme: InputDecorationTheme(
border: InputBorder.none,
hintStyle: TextStyle( hintStyle: TextStyle(
color: theme.primaryTextTheme.caption?.color, fontSize: 14)), color: theme.primaryTextTheme.caption?.color, fontSize: 14)),
textTheme: theme.textTheme.copyWith( textTheme: theme.textTheme.copyWith(