joplin-notes/joplin notion extension/Web Development/Flutter/tips.md
2026-11-04 00:33:23 +05:30

1.4 KiB

tips

  • for making column elements take whole space horizontally use this crossAxisAlignment: CrossAxisAlignment.stretch
  • in buttons to remove the splash and modify other aspects to it
TextButton(
             style: TextButton.styleFrom(
               splashFactory: NoSplash.splashFactory,
               overlayColor: Colors.grey,
               shape: BeveledRectangleBorder(),
             ),
   )
  • conditional inline widgets conditional widgets.txt
  • in flutter if there is issue in version imcompability like this
Execution failed for task ':path_provider_android:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':path_provider_android:androidJdkImage'.

then 1 .inside android/settings.gradle, change id "com.android.application" to version "8.7.1" apply false image 2. in gradle-wraper.properties, change distributionUrl to https://services.gradle.org/distributions/gradle-8.9-all.zip