fix: fixed code gen issues in latest code

This commit is contained in:
Vidya Sagar
2023-12-27 21:38:23 +05:30
parent 6ba41970ad
commit 80e13fc625
2 changed files with 3 additions and 1 deletions

View File

@ -68,6 +68,8 @@ class DartDioCodeGen {
case ContentType.text: case ContentType.text:
dataExp = declareFinal('data').assign(strContent); dataExp = declareFinal('data').assign(strContent);
// when add new type of [ContentType], need update [dataExp]. // when add new type of [ContentType], need update [dataExp].
case ContentType.formdata:
// TODO: Need to Handle this case.
} }
} }
final responseExp = declareFinal('response').assign(InvokeExpression.newOf( final responseExp = declareFinal('response').assign(InvokeExpression.newOf(

View File

@ -143,7 +143,7 @@ class _DropdownButtonFormData extends State<DropdownButtonFormData> {
} }
} }
class DropdownButtonCodegenLanguage extends StatefulWidget { class DropdownButtonCodegenLanguage extends StatelessWidget {
const DropdownButtonCodegenLanguage({ const DropdownButtonCodegenLanguage({
super.key, super.key,
this.codegenLanguage, this.codegenLanguage,