Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Dilum De Silva
    @dilum1995

    Hello all,

    Welcome to the Colombo flutter community gitter channel. we would love to see that you folks are sharing content only related to flutter, dart or relevant in this gitter channel.

    Also, we highly recommend you to request for a gitter room for any of the projects which is published through the Colombo Flutter Community GitHub.

    let's flirt with flutter ...

    Avinath Pulathisi Gunasekara
    @avinath1998
    Hey guys, welcome!!
    Looking forward to building some apps with everyone!
    Aadhil Imam
    @aadhil96
    Hi all
    Asel Peiris
    @AuraOfDivinity
    Hey!
    Yohan Malshika
    @yohanym95
    Hi guys!
    Ashan Dhanapala
    @nomadgeek89
    Hey guys
    Dilum De Silva
    @dilum1995
    @/all meet @nomadgeek89 one of the mentors for Colombo Flutter Community
    Chatura Dilan
    @chaturadilan
    Hii!
    CubeRoshan
    @CubeRoshan
    Hi All

    I have little issue in one of my sample app.
    If anyone can help me to sort this out , that would be a great help.

    i have created sample application and i use streams to load data to screen , i have one screen to save data , and same screen is used to edit the saved data.At bottom navigation bar i have 3 options to select , lets call them "Option A","Option B" and "Option C" , user tap on "Option B" and save the data. i store them in database.once user loads edit screen i have to load all option and previously saved option. i load master data (all options) using bloc and bind data to bottom navigation bar , How do i set the previously selected option when form load ?

    shashila heshan
    @shashilaheshan
    Hi guys waiting
    @CubeRoshan store them inside ArrayList or a map and when the state is change check weather the map or list is empty or not then if not null or empty set the values from that map to form fields with that stream
    shashila heshan
    @shashilaheshan
    @CubeRoshan provide the sample ui interface and bloc
    CubeRoshan
    @CubeRoshan
    @shashilaheshan how do i load both master and saved data from stream ? i will post source code.
    CubeRoshan
    @CubeRoshan
    @shashilaheshan here is code
    Widget _buildBottomNavigationBar() {
        List<BottomNavigationBarItem> items = List();
        int iconIdex = 1;
    
        return StreamBuilder(
          stream: _ratioBloC.inputObservable(),
          builder:
              (context, AsyncSnapshot<List<CementSandAggregateView>> snapshot) {
            _scaffoldContext = context;
            if (snapshot.hasData) {
              snapshot.data.forEach((mix) => {
                    items.add(BottomNavigationBarItem(
                        icon: iconIdex == 1
                            ? Icon(Icons.filter_1)
                            : iconIdex == 2
                                ? Icon(Icons.filter_2)
                                : Icon(Icons.filter_3),
                        title: Column(
                          children: <Widget>[Text(mix.name), Text(mix.ratio)],
                        ))),
                    ratioArr[iconIdex - 1] = mix.id,
                    iconIdex++
                  });
    
              return BottomNavigationBar(
                  items: items,
                  currentIndex: _selectedRatio,
                  fixedColor: Theme.of(context).buttonColor,
                  onTap: _onItemTapped);
            } else {
              return Container(
                height: 0.0,
                width: 0.0,
              );
            }
          },
        );
      }
    CubeRoshan
    @CubeRoshan
    BLOC
    class CementSandAggregateMixBloC {
        BehaviorSubject<List<CementSandAggregateView>> _cSAMixController;
        BLoCProvider provider;
      CementSandAggregateMixBloC(){
        provider = new BLoCProvider();
        _cSAMixController = new BehaviorSubject<List<CementSandAggregateView>>();
        _init();
      }
    
      _init() async{
        List<CementSandAggregateView> data = await provider.getAllRatios();
       _cSAMixController.add(data);
      }
    
      Observable<List<CementSandAggregateView>> inputObservable() => _cSAMixController.stream;
    
        void dispose() {
        _cSAMixController.close();
      }
    }
    Lakshitha Sahabandu
    @lakziro
    hi, how to add payment gateway to flutter app? it must be supported to sri lanka.
    Udesh Kumarasinghe
    @UdeshUK
    Hi @all, it nice join this community and work with you all
    S P MATHULAN
    @PMathulan_twitter
    Hi all, My first flutter app live on Google Play. If there are any suggestions about it please let me know.
    Thank you.
    Manojitanjan Chakma
    @Manojitanjan
    I am making a gridview menu .when i added "child: Image.asset(servicePhoto)), " to the card, an error message pop up saying "'package:flutter/src/painting/image_resolution.dart': Failed assertion: line 135 pos 15: 'assetName!= null': is not true.". I tried flutter clean. lots of googling. but nothing solved my problem. can anyone help me on this?
    Avinath Pulathisi Gunasekara
    @avinath1998
    @Manojitanjan hey, did you correctly add the photo name to the pubspec.y?
    pubspec.yaml?*
    Avinath Pulathisi Gunasekara
    @avinath1998
    By photo name, I mean the filename*
    Ray Rizvi
    @Rayrizvi21_twitter
    Hey Guys. Any one open for opportunities in development using Flutter? :)
    shashila heshan
    @shashilaheshan
    @lakziro payhere and other gateways are not supporting yet .. But you can try it with platform channels with native code.. or else try webview and make http requests using that webview to make payment
    @Manojitanjan post the full snippest here
    Nifras Ismail
    @nifrasismail
    Hey @all Happy to join with Colombo flutter devs
    any one open for a flutter initiative project ? as freelancing
    lahiruzone
    @lahiruzone
    hey @nifrasismail I'm open for fultter project as a freelancer.
    kenula-App
    @kenula-App
    Hey i am new to this flutter and i am so intereted in making an app. But at some points i get stuck (eg; stateful widget)and stuff.Can anyone help me?