Flutter different theme for Android and iOs

0 votes

I want to use a different theme for my flutter app, depending on the OS it's started on. How can I detect the OS when choosing what theme to apply?

Theme.of(context).platform == TargetPlatform.iOS

doesn't work, because I haven't applied a theme yet...

Nov 23 in Android by Ashwini
• 2,760 points
25 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Android

0 votes
0 answers

Android Open External Storage directory(sdcard) for storing file

For programmatic file saving, I want to ...READ MORE

Sep 21 in Android by Edureka
• 12,390 points
74 views
0 votes
1 answer

Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

Go to the gradle.properties file and add ...READ MORE

answered Nov 8 in Android by Edureka
• 10,880 points
43 views
0 votes
1 answer

Android Shared preferences for creating one time activity

Android offers a variety of options for ...READ MORE

answered Nov 8 in Android by Edureka
• 10,880 points
36 views
0 votes
1 answer
0 votes
1 answer

Dart_LoadScriptFromKernel: The binary program does not contain 'main'.

Hi@akhtar, You need to add the main() function ...READ MORE

answered Jul 21, 2020 in Others by MD
• 95,380 points
2,219 views
0 votes
1 answer

How to install Dart in Windows system?

Hi@akhtar, Dart is the programming language used to code Flutter apps. ...READ MORE

answered Jul 21, 2020 in Others by MD
• 95,380 points
454 views
0 votes
1 answer

flutter run: No connected devices

Hi@akhtar, To prepare to run and test your ...READ MORE

answered Jul 21, 2020 in Others by MD
• 95,380 points
2,908 views
0 votes
1 answer

How to create a function in Dart language?

Hi@akhtar, There are many function types available in ...READ MORE

answered Jul 22, 2020 in Others by MD
• 95,380 points
263 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP