Localization in Flutter MaterialApp Widget parameters. You should use onGenerateTitle instead of title field:
onGenerateTitle: (context) => I18n.of(context).trans('title'),
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.