TechnoPrashant / Sizer

A flutter plugin for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.
MIT License
256 stars 76 forks source link

Sizer not working with routes #72

Closed fof-fa closed 3 months ago

fof-fa commented 1 year ago

import 'package:flutter/material.dart'; import 'greeting/screens_greeting.dart'; import 'package:sizer/sizer.dart';

void main() { runApp(Sizer(builder: (context, orientation, deviceType) { return MaterialApp( debugShowCheckedModeBanner: false, initialRoute: '/', routes: { '/': (context) => const Main(), '/first_greeting': (context) => const FirstGreeting(), '/second_greeting': (context) => const SecondGreeting(), '/third_greeting': (context) => const ThirdGreeting(), '/fourth_greeting': (context) => const FourthGreeting(), '/fifth_greeting': (context) => const FifthGreeting(), '/sixth_greeting': (context) => const SixthGreeting(), }, ); })); }

How fix it?

ty1135 commented 3 months ago

any update ?

TechnoPrashant commented 3 months ago

Fixed in Version 3.0.3