Code before migration:

import

'package:flutter/material.dart'

void

main

()

runApp

Foo

());

class

Foo

extends

StatelessWidget

@override

Widget

build

BuildContext

context

return

MediaQuery

data:

const

MediaQueryData

(),

child:

Directionality

textDirection:

TextDirection

ltr

child:

Material

child:

TextField

(),

),

),