From ab157d46ab139a930357eef344efc6c811be915e Mon Sep 17 00:00:00 2001 From: rouslan-note Date: Mon, 5 Feb 2018 09:08:34 +0300 Subject: [PATCH] Updated InputDecorator properties, changed setState type --- lib/src/flutter_search_bar_base.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/flutter_search_bar_base.dart b/lib/src/flutter_search_bar_base.dart index 91ba1c9..fec3af2 100644 --- a/lib/src/flutter_search_bar_base.dart +++ b/lib/src/flutter_search_bar_base.dart @@ -1,13 +1,12 @@ // Copyright (c) 2017, Spencer. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. -import 'dart:async'; import 'package:flutter/material.dart'; import 'package:meta/meta.dart'; typedef AppBar AppBarCallback(BuildContext context); typedef void TextFieldSubmitCallback(String value); -typedef void SetStateCallback(fn); +typedef void SetStateCallback(void fn()); class SearchBar { /// Whether the search should take place "in the existing search bar", meaning whether it has the same background or a flipped one. Defaults to true. @@ -98,7 +97,7 @@ class SearchBar { color: inBar ? Colors.white70 : Colors.black54, fontSize: 16.0 ), - hideDivider: true + border: null ), onSubmitted: (String val) async { if (closeOnSubmit) {