flutter_screenutil_zego 5.6.1 flutter_screenutil_zego: ^5.6.1 copied to clipboard
A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
import 'package:device_preview/device_preview.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'src/first_method.dart' as firstMethod;
import 'src/second_method.dart' as secondMethod;
void main() {
const method = int.fromEnvironment('method', defaultValue: 1);
runApp(
DevicePreview(
enabled: kDebugMode && kIsWeb,
builder: (context) {
return method == 1 ? firstMethod.MyApp() : secondMethod.MyApp();
},
),
);
}