How to update minSdkVersion to 21 in android studio for flutter

When I developed an Flutter app with camera function, I found out I can’t run camera due to a low min sdk version. To fix it, follow steps below:

1. Go to the path ‘./android/app/build.gradle"

2. Update the sdk version as image below