Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #9 from GRouslan/master
Browse files Browse the repository at this point in the history
Updated InputDecorator properties, changed setState type
  • Loading branch information
ArcticZeroo authored Feb 7, 2018
2 parents 993a60a + ab157d4 commit c938421
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/src/flutter_search_bar_base.dart
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c938421

Please sign in to comment.