Flutter's Search Support (The Boring Flutter Development Show, Ep. 10)

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 115

  • @arjun5458
    @arjun5458 3 года назад +5

    This stuff is awesome, straight from the people who made it, and to see them making mistakes and learning on the way gives me a lot of confidence.

  • @Surimi888
    @Surimi888 4 года назад +4

    Andrew and Matt coding are me when I'm coding, except it's just the voices in my head. 😂Useful vid! Ended up implementing my search bar a little differently due to my data structure but cool to see your process!

  • @em8875
    @em8875 5 лет назад +39

    I saw that red screen for a minute too, Andrew. 😂

  • @professorneila2941
    @professorneila2941 5 лет назад +1

    this tutorial + mood lighting + jazz = so relaxing waow

  • @DmitriyBlokhin
    @DmitriyBlokhin 5 лет назад +4

    Very usefull topic. I just added search feature in my app.

  • @nidalbakir4720
    @nidalbakir4720 3 года назад +2

    I love the show 🔥.
    It's more like relax, enjoy and learn💻👓

  • @apisaksrihamat1736
    @apisaksrihamat1736 3 года назад

    This video give me the clearer idea for Search Delegate, thanks for the sharing.

  • @lipingxiong1376
    @lipingxiong1376 5 лет назад +13

    Do we have source code for the show?

  • @clever_dude
    @clever_dude 5 лет назад +6

    I am interested in two topic: Flutter Internationalizing and maps support for flutter, ooh and one more thing, Persisting ui state would be a good one too

    • @andrewbrogdon558
      @andrewbrogdon558 5 лет назад +1

      The maps plugin is being built out at github.com/flutter/plugins, and there's a guide for internationalization at flutter.io/docs/development/accessibility-and-localization/internationalization.

  • @lukastaylor1868
    @lukastaylor1868 5 лет назад +1

    Thank you Andrew and Matt!! This really helped to clear up a lot of things for me.

  • @benjaminli21
    @benjaminli21 2 года назад

    Flutter have a lot of things to help us to build app fast!!!!

  • @PaulSenni
    @PaulSenni 5 лет назад +1

    Awesome episode guys ... Got some search to implement

  • @ShinjaeKang
    @ShinjaeKang 5 лет назад

    This is the tutorial that I search! Can study about search function & Builder. Thank you~

  • @havefun5519
    @havefun5519 4 года назад +4

    4:39 The outer light circle effect for the search button during clicking looked not perfect, how could this be fixed? Can't the effect float above the app bar? Currently, it is cut at the app bar boundary.

  • @ShashankhS
    @ShashankhS 4 года назад

    This was a really helpful video!! Thank you guys

  • @maddymadanraj
    @maddymadanraj 4 года назад

    you guys have saved by day today
    thanks :)

  • @ReubenTurnerMusic42
    @ReubenTurnerMusic42 5 лет назад

    Why's Matt always wearing a beanie? Love these videos, please please keep them coming!!!

  • @diegotus92
    @diegotus92 2 года назад

    Great presentation! Congrats guys. I have a question. If on each article in the result the onTap lead to a new page(navigator push) how can you avoir reloading the search on back from the new route?

  •  3 года назад

    Thank you for tutorial :)

  • @rutviktak716
    @rutviktak716 4 года назад

    This one was pretty interesting boring show

  • @jimmyfmedina
    @jimmyfmedina 5 лет назад

    Excellent channel.

  • @QasimSeeha
    @QasimSeeha 5 лет назад

    i love this show !!

  • @themisir
    @themisir 4 года назад

    It's fairly simple API.
    Video length: 57:00

  • @RoaiDude1
    @RoaiDude1 5 лет назад +8

    The reason why it didn't show you the suggestions after tapping one is because you didnt lowercase the query :)

    • @redbrogdon
      @redbrogdon 5 лет назад +1

      Matt eventually caught it. Took about a half hour. :)

    • @daniel.montibeller
      @daniel.montibeller 5 лет назад +2

      @Andrew Brogdon I watched the whole episode in deep pain waiting for you to add the missing lowercasing 😂

    • @redbrogdon
      @redbrogdon 5 лет назад +7

      So you're saying that if I make an egregious mistake early in the episode, it keeps the audience hooked until the end. Interesting... interesting... 😂

    • @musafirgauravv
      @musafirgauravv 5 лет назад +3

      When I refer to flutter.io i many times get confused because for a new framework and on top of that beginners like me , it becomes to difficult to understand just by definition and parameters please provide small small examples of code too. There are examples there but for specific things only but I think they should cover each possible part.

    • @jefffrazier6813
      @jefffrazier6813 5 лет назад

      YES!!!

  • @michelfeinstein
    @michelfeinstein 5 лет назад

    Could you guys get with Will the correct way of styling the ListTile for the next episode?

  • @manjunathvasamshetty5582
    @manjunathvasamshetty5582 5 лет назад

    we can use sink and stream controller to get the search results from bloc.

  • @karansaggoo2935
    @karansaggoo2935 3 года назад

    Hello
    Please make a video on search in flutter app on different firestore collection
    For eg there are three categories of vehical light , heavy , medium and have different collection in firebase
    And how to search throughout the app (search any category in home page )

  • @vlycie6628
    @vlycie6628 4 года назад +1

    #AskFlutter #firestore
    How to use SearchDelegate with data from firestore database?

  • @nurmuhammadkholmuhammadov9643
    @nurmuhammadkholmuhammadov9643 Год назад

    why u didn't implement search with debounce? it is common things when searching

  • @0x6po
    @0x6po 4 года назад

    my left ear is happy

  • @ReubenTurnerMusic42
    @ReubenTurnerMusic42 5 лет назад

    lol @ 8:00, "I feel bad things are about to happen"

  • @priyanshparmar819
    @priyanshparmar819 5 лет назад +6

    Any tutorial on how to use Google maps in flutter ???

    • @jamoni2410
      @jamoni2410 5 лет назад +1

      Priyansh Parmar
      yeah check on the Google Developer's website

    • @andrewbrogdon558
      @andrewbrogdon558 5 лет назад

      We don't have a full tutorial yet, but the plugin is in development at github.com/flutter/plugins, and we've got a sample up at github.com/flutter/samples.

    • @priyanshparmar819
      @priyanshparmar819 5 лет назад

      @@andrewbrogdon558 Can we get any episode on using maps in flutter in future??

  • @dawithagos
    @dawithagos 5 лет назад

    Nice, tutorial. But Is there a way to override the default hint text on the text field?

  • @AndreaGrippi
    @AndreaGrippi 5 лет назад +2

    If I filled the suggestions list with restults from my db through http call, what would be a good practice to filter the results/avoid loading big amount of data?
    Specifically, I want to use this mechanism with this (flutter_map) map plugin (still praying for an official one). What would be the best to optimize such situation?

    • @redbrogdon
      @redbrogdon 5 лет назад +2

      The maps plugin is in progress right now at: github.com/flutter/plugins/tree/master/packages/google_maps_flutter. There's a sample currently landing in the flutter/samples repo as well!
      For your first question, though, you could try adding an HTTP call to your backend specifically for generating suggestions and then just send back a couple that are displayed in a FutureBuilder or StreamBuilder, or base your suggestions on data that you've already got loaded (like past searches by that user). The SearchDelegate interface is pretty basic (you're just returning widgets, after all), so there's a lot that you can do.

  • @mozzarellaarc
    @mozzarellaarc 4 года назад

    This is fun

  • @singhsaubhik
    @singhsaubhik 3 года назад

    Why you guys are using IntelliJ IDEA rather than Android Studio or VSCode 😲 ?

  • @miguelriosr5837
    @miguelriosr5837 5 лет назад +1

    Hi, thanks for the tuto... but, I have a question, how i can replace the placeholder text 'Search' by other text? Thank you!

  • @alexandreasen333
    @alexandreasen333 4 года назад

    Question: how would you make a search field to be clicked instead of an iconbutton, have an animated transition to the searchdelegate back and forth as well as show the searched word in the searched field afterwards?

  • @moreldarielle2174
    @moreldarielle2174 4 года назад

    good tutorial, in my case I have 2 registrations of different type. the first is a registration of the product in green I used card and the second purchase I have registered in gray, I would like to do the research to have the same rendering. But not coming. I used a switch like when recording but I always have errors.

  • @somestrangeperson
    @somestrangeperson 5 лет назад

    Thanks

  • @Chaseosa
    @Chaseosa 5 лет назад +1

    11:47 Andrew was right, there is an error when he clicked it the first time! #notcrazy

    • @M0oreFun
      @M0oreFun 5 лет назад

      Yeah... does someone find something to resolve that?

    • @cleanrunyt
      @cleanrunyt 4 года назад

      @@M0oreFun i think the close() method should not have null on the query parameter

  • @thinkdigital-cellphonespec4314
    @thinkdigital-cellphonespec4314 5 лет назад +1

    The soft keyboard doesn't come up by default on the iOS emulator

  • @michelfeinstein
    @michelfeinstein 5 лет назад

    Andrew, you spoke about doing ViewModels... I never heard of VM in Flutter (just BLoC, Redux, etc)... Where do you use it and why?

  • @souldiezcamp2380
    @souldiezcamp2380 4 года назад

    But we should still see the suggestions when we go back to the app here as i see we returned to the main page

  • @Rj1650-c2l
    @Rj1650-c2l 3 года назад

    How to implement search bar by dynamically showing search results from MySQL database and converting that suggestion into gridView.builder() ?

  • @ThEGeEeK
    @ThEGeEeK 5 лет назад

    which theam is that ..looking good..

  • @ArashBizhanzadeh
    @ArashBizhanzadeh 5 лет назад

    A link to the previous mentioned episode would be nice

    • @redbrogdon
      @redbrogdon 5 лет назад

      No problem. We have a whole playlist: bit.ly/BoringShow

  • @ahmetbugraozcan6742
    @ahmetbugraozcan6742 2 года назад

    14:03 how is this clear method (query = ' ') worked without setstate?

  • @bigmac3049
    @bigmac3049 4 года назад +1

    name of intro song please?

  • @xieen7976
    @xieen7976 4 года назад

    thx for the tutorial, may I ask showSearch will raise a [Navigator operation requested with a context that does not include a Navigator.] how to fix it?

  • @karansaggoo2935
    @karansaggoo2935 3 года назад

    Sir i want to perform a search by two field in each documents in firestore in flutter on only one text field
    Eg field 1 is code or field 2 is name
    Means to say person can search either by code or name

  • @rounaktadvi4950
    @rounaktadvi4950 3 года назад

    What if i want to search the keyword and show two different search results in two different tabs? How to do this?

  • @marieclairembangatoungou6526
    @marieclairembangatoungou6526 4 года назад

    hello; thx for the video first. then I wanted to know if it's possible to add an appbar on top of search delegate bar. Thx for the response

  • @chandraabdulfattah1875
    @chandraabdulfattah1875 5 лет назад

    Thank you for tutorial, can I change color of cursor? I have tried add cursoColor on appBarTheme, the color still not changed.

  • @shivamtripathi3981
    @shivamtripathi3981 4 года назад

    when you guys code it just always like WOW
    HOW COLUD IT POSSIBLE

  • @AbhideepChakravarty
    @AbhideepChakravarty 3 года назад

    I am trying it on Flutter Web. While development, I am debugging it on Chrome browser, so I need to hit enter after typing in the search bar and everything works as expected. But when I deploy it on Firebase Hosting and open it on mobile browser, the Enter key of the mobile soft key pad is sometime showing result and other time (most of the time) doing nothing, as if no one pressed the enter button. Any suggestion?

  • @youdube1203
    @youdube1203 4 года назад +1

    i need to source code of the bloc

  • @shrinathprabhu
    @shrinathprabhu 5 лет назад

    I want to know, can we implement real time communication applications in flutter using websockets or socket.io?

  • @codewithabir3089
    @codewithabir3089 4 года назад

    after using your code I saw a error when I used space after any alphabet/ word. Although I solved this error. But can not solved the upper case problem.

  • @GAOUBIOU30
    @GAOUBIOU30 4 года назад

    Somewhere just after 18:20 Matt says why dont you use a FutureBuilder. Ive tried to make an app that takes data (json) from a rest service using http.get. And i wished to add search functionality. I did what you show us on the video but i am using futerBuilder (i've google it) at the body of the widget instead of Stream

  • @MrMagicofrate
    @MrMagicofrate 4 года назад

    I'm following this very beautiful and usefull course. But I have a big problem with this lesson. Can you help me?
    I have the last version installed. When I create the class ArticleSearch, I need to override all the methods, or it will not work. I don't made any other changes respect your code, and it works, when I start debug, but when I press the search icon on the listview, I recieve the following error:
    I/flutter (28595): The following NoSuchMethodError was thrown while handling a gesture:
    I/flutter (28595): The setter 'parent=' was called on null.
    I/flutter (28595): Receiver: null
    I/flutter (28595): Tried calling: parent=Instance of 'AnimationController'
    I/flutter (28595):
    I/flutter (28595): When the exception was thrown, this was the stack:
    I/flutter (28595): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
    I/flutter (28595): #1 _SearchPageRoute.createAnimation (package:flutter/src/material/search.dart:362:30)
    I/flutter (28595): #2 TransitionRoute.install (package:flutter/src/widgets/routes.dart:193:18)
    I/flutter (28595): #3 ModalRoute.install (package:flutter/src/widgets/routes.dart:1053:11)
    I/flutter (28595): #4 _RouteEntry.handlePush (package:flutter/src/widgets/navigator.dart:2326:11)
    I/flutter (28595): #5 NavigatorState._flushHistoryUpdates (package:flutter/src/widgets/navigator.dart:2973:17)
    I/flutter (28595): #6 NavigatorState.push (package:flutter/src/widgets/navigator.dart:3297:5)
    I/flutter (28595): #7 showSearch (package:flutter/src/material/search.dart:60:32)
    I/flutter (28595): #8 _MyHomePageState.build. (package:hn_app/main.dart:77:15)
    I/flutter (28595): #9 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:779:19)
    I/flutter (28595): #10 _InkResponseState.build. (package:flutter/src/material/ink_well.dart:862:36)
    I/flutter (28595): #11 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
    I/flutter (28595): #12 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:504:11)
    I/flutter (28595): #13 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:282:5)
    I/flutter (28595): #14 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:217:7)
    I/flutter (28595): #15 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:475:9)
    I/flutter (28595): #16 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:76:12)
    I/flutter (28595): #17 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:122:9)
    I/flutter (28595): #18 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
    I/flutter (28595): #19 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:120:18)
    I/flutter (28595): #20 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:106:7)
    I/flutter (28595): #21 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19)
    I/flutter (28595): #22 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
    I/flutter (28595): #23 GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
    I/flutter (28595): #24 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
    I/flutter (28595): #25 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
    I/flutter (28595): #29 _invoke1 (dart:ui/hooks.dart:275:10)
    I/flutter (28595): #30 _dispatchPointerDataPacket (dart:ui/hooks.dart:184:5)
    I/flutter (28595): (elided 3 frames from dart:async)
    I/flutter (28595):
    I/flutter (28595): Handler: "onTap"
    I/flutter (28595): Recognizer:
    I/flutter (28595): TapGestureRecognizer#6a252
    I/flutter (28595): ════════════════════════════════════════════════════════════════════════════════════════════════════
    I/flutter (28595): Another exception was thrown: 'package:flutter/src/widgets/navigator.dart': Failed assertion: line 3289 pos 12: '!_debugLocked': is not true.

  • @hariangr
    @hariangr 5 лет назад

    Tell me more about that Builder (in the snackbar part)

  • @moh.rizkih1510
    @moh.rizkih1510 3 года назад

    i tried this on querysnapshot from firebase, and i couldn't get the results. Can anyone help me?

  • @sharukhrahman7925
    @sharukhrahman7925 3 года назад

    how to stop user from clicking enter key in the keyboard.. this breaks the search delegate...

  • @martinv4914
    @martinv4914 3 года назад

    This show would be perfect if cricket sounds would be added in the background.

  • @steveskamdem1608
    @steveskamdem1608 5 лет назад

    Hello i wnat to implement SearchDelegate buy i have this error : type 'Future' is not a subtype of type 'Future'. how can i fix it? please

  • @anubhav_roy
    @anubhav_roy 5 лет назад

    Appreciate the video :D . Could you stream it so that we can ask queries live ? :)

    • @andrewbrogdon558
      @andrewbrogdon558 5 лет назад +1

      You're always welcome to post them here or tweet things at us. To be honest, we can often give better answers if we have a chance to think about the question and do a little research. :)

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 5 лет назад

    The status bar reappears when keyboard is opened on Android , not sure if this a bug but I faced this in 2 to 3 devices of Android, anybody experienced the same??

  • @montysoms
    @montysoms 5 лет назад

    I wanted to add a realtime chatting feature to an app I'm currently working on. I really have lots of ideas, one of them is using TCP sockets but I think it won't be secure or that I will have to write additional code to make it secure. One of the constraints I'm facing is that I'm using a RESTful HTTP API for the rest of the app, and we cannot afford saving messages into firebase. Any idea of how we can do this?

    • @andrewbrogdon558
      @andrewbrogdon558 5 лет назад

      Hmm. This is probably more of a backend question than a Flutter question, since the app would mostly just act as a client that sends/receives things via a server. You could certainly build a REST-based HTTP service that your Flutter app uses to send and long-poll for messages. I imagine that would be simpler than trying to maintain an encrypted TCP connection on a mobile device, though Flutter supports raw, socket-level network communication.

  • @jordandavies1563
    @jordandavies1563 5 лет назад

    I think I've found a bug in Flutters search view. If you navigate away from the search view using Navigator.push and then back to it using the back button, you cannot enter text into the search box.

    • @redbrogdon
      @redbrogdon 5 лет назад

      Interesting! Can you drop the code you caught this with into a GitHub gist or some other place where I could get at it? I'd love to verify and file an issue. You're also welcome to file an issue directly, of course: github.com/flutter/flutter/issues.

    • @jordandavies1563
      @jordandavies1563 5 лет назад +2

      Yeah, I created an issue: github.com/flutter/flutter/issues/23862

  • @Sawa421i
    @Sawa421i 5 лет назад

    How to change color of outline (border) InputDecoration (default’s is blue) without changing theme of app

    • @redbrogdon
      @redbrogdon 5 лет назад

      For many input widgets (TextField, for example) you can provide an InputDecoration of your own in the constructor (try using Theme.of to grab the current one, and then modify it using copyWith).

  • @alizamani5772
    @alizamani5772 4 года назад

    how to search by image TFlite

  • @shilajeetkanungo5907
    @shilajeetkanungo5907 5 лет назад

    Can you please tell me that which editor are you using

    • @andrewbrogdon558
      @andrewbrogdon558 5 лет назад

      I use IntelliJ IDEA. There are also plugins for Android Studio and VS Code.

  • @vaderscape6014
    @vaderscape6014 5 лет назад

    #boringshow I'd really like to know how to use search delegate to search through a future listview

  • @cruzcunha
    @cruzcunha 4 года назад

    I'm using SearchDelegate with Mobx, but I'm with an issue: when I close the search page and set the return value on the initial form the screen doesn't not update. The new value is there, because if I save the form, the new value is updated in the storage, mas the screen does not refresh. Anyone can help me? (Mobx with SearchDelegate)

    • @alexandreasen333
      @alexandreasen333 4 года назад

      Maybe you forgot to use setState?

    • @cruzcunha
      @cruzcunha 4 года назад

      @@alexandreasen333 but the point of using observables (mobx) is that you don't need to call setState

    • @alexandreasen333
      @alexandreasen333 4 года назад

      @@cruzcunha in the provider pack you at times must call a NotifyListeners function. Maybe similar?

    • @cruzcunha
      @cruzcunha 4 года назад

      @@alexandreasen333 I resolved that calling Navigator.pop instead of the close method of SearchDelegate

  • @nazar.kk1
    @nazar.kk1 4 года назад

    It's the most boring show I ever seen! (joke) Thank you for video

  • @MohammadZare90
    @MohammadZare90 5 лет назад

    how can i change search hint text?

    • @maksimhapeyenka2435
      @maksimhapeyenka2435 5 лет назад

      @@emilyfortuna2262 but we cannot access InputDecoration for the search!

  • @pippop9583
    @pippop9583 5 лет назад

    why flutter team using mac book?

    • @paulzarudnev
      @paulzarudnev 5 лет назад +1

      Maybe because only the Macbook allows them to build apps for both platforms - iOS and Android.

  • @kanishqsarkar1153
    @kanishqsarkar1153 3 года назад

    am i the only one who noticed the error?

  • @almokhtar1844
    @almokhtar1844 4 года назад

    i saw that too ahhah

  • @markonovakovic3838
    @markonovakovic3838 5 лет назад +1

    am so annoyed by their typing

  • @diegotus92
    @diegotus92 2 года назад

    Great presentation! Congrats guys. I have a question. If on each article in the result the onTap lead to a new page(navigator push) how can you avoir reloading the search on back from the new route?