feed_plugin 0.3.11 feed_plugin: ^0.3.11 copied to clipboard
Feed Plugin
import 'package:feed_plugin_example/app.dart';
import 'package:feed_plugin_example/localization/localizations.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_screenutil/screenutil_init.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
double defaultScreenWidth = 375.0;
double defaultScreenHeight = 812.0;
final List<Locale> localeList = [
const Locale('en', ''),
const Locale('ru', ''),
const Locale('he', ''),
const Locale('de', ''),
];
@override
Widget build(BuildContext context) {
return ScreenUtilInit(
designSize: Size(defaultScreenWidth, defaultScreenHeight),
builder: () => MaterialApp(
home: App(),
localizationsDelegates: [
PhonedoLocalizationsDelegate(),
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
locale: Locale('he'),
supportedLocales: localeList,
),
);
}
}