Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on /r/flutterdev subreddit:

change color of card on tap
i am new to flutter and need help with my code. i want my ontap function to change the color of my card from grey to red,class SubjectDetailsphymcq1 extends StatelessWidget {
u/override
Widget build(BuildContext context) {
return Scaffold(
        appBar: AppBar(
          title: Text("Quiz 1"),
        ),
        body: new ListView(
          shrinkWrap: true,
          children: <Widget>[
Column(
              children: <Widget>[
InteractiveViewer(
                  child: Image(
                    height: 100,
                    image: AssetImage('assets1/Screenshot (124).png'),
                  ),
                ),
Card(
                  elevation: 5,
                  margin: const EdgeInsets.all(0.0),
                  child: InkWell(
                    onTap: () {},
                    child: Container(
                      child: Text("A) Impulse", style: TextStyle(fontSize: 20)),
                      width: 350,
                      height: 50,
                      padding: const EdgeInsets.fromLTRB(20, 0, 0, 0),
                      color: Colors.grey[200],
                    ),
                  ),
                ),
              ],
            )
          ],
        ));
  }
}

January 03, 2022 at 04:54PM by ball-sack-patato
https://ift.tt/3eLDckl
New post on /r/flutterdev subreddit:

Schedule notifications in Flutter using Awesome Notifications — [Part 2]
https://ift.tt/3qLIMJe

January 03, 2022 at 07:25PM by RaghavTheGreat1
https://ift.tt/3qHrxIZ
New post on /r/flutterdev subreddit:

What architecture do you use in your projects?
I'm learning Flutter and I'm really curious about what kind of architecture people use on their projects.

January 03, 2022 at 09:03PM by ignabk
https://ift.tt/3qOEv7X
New post on /r/flutterdev subreddit:

How long are your build times (especially xcode) in your CI ?
Question's in the title.I was wondering about the build times other people experience.
Usually i built the appbundles on my local machines, which is fairly fast, but now due to needing a reliable way to build iOS apps, I set up codemagic CI and was taken aback by a 28 min build for both android and iOS. Android took around 6 minutes and iOS took 16 minutes (16!!!!). What's going on here ? Is this just another quirk of the lovely Apple ecosystem or is something slowing down my build ?Maybe you can share some experiences ~ your build times and/or tricks you found for speeding them up

January 03, 2022 at 09:54PM by shorty_luky99
https://ift.tt/3qEUbue
New post on /r/flutterdev subreddit:

need help with code
tried following the stuff on stackoverflow, not sure what im doing wrong . My button does not turn red when pressed ,class SubjectDetailsphymcq1 extends StatefulWidget {
u/override
_SubjectDetailsphymcq1State createState() => _SubjectDetailsphymcq1State();
}
class _SubjectDetailsphymcq1State extends State<SubjectDetailsphymcq1> {
u/override
Widget build(BuildContext context) {
bool pressAttention = true;
return Scaffold(
        appBar: AppBar(
          title: Text("Quiz 1"),
        ),
        body: new ListView(
          shrinkWrap: true,
          children: <Widget>[
Column(children: <Widget>[
InteractiveViewer(
                child: Image(
                  height: 100,
                  image: AssetImage('assets1/Screenshot (124).png'),
                ),
              ),
new RaisedButton(
                child: new Text('Attention'),
                textColor: Colors.white,
                shape: new RoundedRectangleBorder(
                  borderRadius: new BorderRadius.circular(30.0),
                ),
                color: pressAttention ? Colors.grey : Colors.red,
                onPressed: () =>
setState(() => pressAttention = !pressAttention),
              )
            ])
          ],
        ));
  }
}

January 04, 2022 at 01:07AM by ball-sack-patato
https://ift.tt/32XuM71
New post on /r/flutterdev subreddit:

Which lib are you using with flutter for graphql?
I was using https://github.com/zino-hofmann/graphql-flutter for flutter graphql projects but the main author of the lib is no longer working on this project. I know there have been two beta releases of this project recently but does anyone of you use any other library graphql client with flutter. Please don't recommend default http client which we use for rest apis. Has anyone tried this https://github.com/gql-dart/ferry. If you're using any other lib do let me know as well.

January 04, 2022 at 07:24AM by BraveEvidence
https://ift.tt/3eK8GHL
New post on /r/flutterdev subreddit:

Clean architecture with DB packages?
Hey guys! How do you handle clean architecture with already made local DB packages like sembast, Isar or Hive?I got the gist that the functions should be as universal as possible but that strips away a lot of features that the native package offers which is a pain to replicate with a function.Is there something I’m missing?

January 04, 2022 at 08:58AM by Silfalion
https://ift.tt/3qPewNB
New post on /r/flutterdev subreddit:

Can you guys share some production flutter app repo?
I'm working on my flutter application which I want to publish but I have some limitations on the backend like API bandwidth (2 GB) also I'm not good at routing since it involves users.So pls can you share some application repo so I can study those repository and enhance our application like Bloc, fLutter_bloc, hydrate_bloc, firebase_auth, navigations, theming, cubit, get_it, and all necessary pattern/architecture that required to build any production level application

January 04, 2022 at 12:51PM by Prashant_4200
https://ift.tt/3eLaMal
New post on /r/flutterdev subreddit:

Mix visual and traditional coding. External packages and dynamic params supported
https://twitter.com/tetabuilder/status/1478302463497277442?s=21

January 04, 2022 at 02:31PM by OndaTeta
https://ift.tt/3eMUoG3
New post on /r/flutterdev subreddit:

I created a new markup language.
Happy New Year!​I created a new markup language during the New Year holidays.https://pub.dev/packages/simple_widget_markup​You can also try it out on the following sites. However, a full HD or higher display is recommended.https://simple-widget-markup-editor.web.app/​The reason I made this was because I wanted to deliver to my app users new information on Flutter Web, but HTML was difficult to use and markdown was not expressive.​The parsed markup text is replaceable with Flutter's Widget, so most of the static parts of the layout can be written in this language as well.Also, This language is inherently simple, so even non-programmers should be able to use it immediately after training. (Although the documentation is still inadequate ...)​I don't know how much it will be accepted, but I hope it helps someone who has the same worries as me.​Thank you.

January 04, 2022 at 04:03PM by Masahide_Mori
https://ift.tt/3pRfdq9
New post on /r/flutterdev subreddit:

Google Sheet copy - paste to flutter and vice versa?
In my app , I am need to implement this featureThat is,There is a data table in flutter Web app. The user will select a whole column and copies it via Ctrl+cThen he will go to Google sheet and paste it. The whole column got pasted there with structure intactAfter doing some calculations and editing there , then he will do the vice versa of #1I have no idea about this, particularly parsing Flutter <=> sheets ?Please give Suggestions

January 04, 2022 at 06:50PM by RageshAntony
https://ift.tt/3eQF8bo
New post on /r/flutterdev subreddit:

is the "audioplayers" package working for you?
I have been doing Flutter for only 2 weeks. I love it. Everything has been going well. Until now.I need an app I am building to play a few short sounds on certain events. This package seemed the way to go:https://pub.dev/packages/audioplayersIt looks so simple to play a sound, and the package gets a 99% popularity. BUT!I can't even get the thing to build. I get a bunch of different build errors when I try to use it, even with a dead simple demo app. A bunch of stuff like:"Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors"and"Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15."This stuff is way over my head. Until yesterday everything "just worked." I have used at least 4 other packages seamlessly. I am frustrated and need help.Can anyone throw an old dog a bone? :)

January 04, 2022 at 06:25PM by mattgwriter7
https://ift.tt/3pRyPum
New tweet from FlutterDev:

🦋 Chapters 16, 17, & 18: Pop Quiz! Flutter apps can be deployed to the... #flutterapprentice— Flutter (@FlutterDev) Jan 4, 2022

January 04, 2022 at 09:04PM
https://twitter.com/FlutterDev/status/1478457251748671489
New post on /r/flutterdev subreddit:

Can anyone here share experience for using fastlane, GitHub-hosted runners, CD workflows, or any similar?
For those of you that don't know, fastlane is a tool for building and releasing mobile applications. I have never used it, but I am very interested in trying it out. In their docs for doing CI/CD via GitHub Actions, they recommend to use a GitHub-hosted runner (link to fastlane doc page).Have you used fastlane? Did you like it or not? Have you used GitHub's hosted runners? Did you like it? Have you used fastlane on GitHub-hosted runners?I am also interested in alternatives. I read through Flutter's list of recommended CD options here. What was your experience like for any of those?

January 04, 2022 at 11:07PM by luckeyelijah
https://ift.tt/3sZ3s3e
New post on /r/flutterdev subreddit:

Where to start, building a parental control app for iOS / Android
Hi all,I'm fairly new to coding and flutter so I thought I'd seek some advice here. I'm trying to build an app as a project for myself, that allows parents to restrict their children's usage of certain other apps. What I don't have the slightest clue about is, what do you use to implement the logic for restricting/blocking access to other apps in iOS and Android. Where do you access the data for a phone's app usage, and then how do you go about controlling them? is this something that can be done with Flutter?

January 04, 2022 at 10:33PM by Tengu3
https://ift.tt/3pQgP3z