Open ramazan351 opened 2 years ago
You forgot to wrap the root widget with Sizer Widget:
return Sizer(
builder: (_, __, ___) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(),
);
},
);
I had the same problem, this solution worked for me ;)
(LateInitializationError: Field 'width' has not been initialized.)