ValueError:无法将字符串转换为浮点数:python错误

时间:2020-11-11 22:16:17

标签: python

所以这是我的代码,当我运行时,在打开anaconda提示后出现错误。我什至将温度转换为浮动,但在打开aaconda之后仍然无法工作

main() async {
  // if your flutter > 1.7.8 :  ensure flutter activated
  WidgetsFlutterBinding.ensureInitialized();

  await translator.init(
    localeDefault: LocalizationDefaultType.device,
    languagesList: <String>['en', 'ar'],
    assetsDirectory: 'assets/langs/',
    apiKeyGoogle: '<Key>', // NOT YET TESTED
  );
//   Future<void> main() async {
//   WidgetsFlutterBinding.ensureInitialized();
//   final SharedPreferences prefs = await SharedPreferences.getInstance();
//   var isLoggedIn = (prefs.getBool('isLoggedIn') == null)
//       ? false
//       : prefs.getBool('isLoggedIn');
//   // runApp(MaterialApp(
//   //   debugShowCheckedModeBanner: false,
//   //   home: isLoggedIn ? Home() : LogIn(),
//   // ));
// }

  runApp(
    LocalizedApp(
      child: Notification(),
    ),
  );
}


class Notification extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [
        
   
        ChangeNotifierProvider.value(value: Products_FitnessAndGym()),
        ChangeNotifierProvider.value(value: Cart()),
        ChangeNotifierProvider.value(value: Wishe()),
        ChangeNotifierProvider.value(
          value: Orders(),
        )
      ],
      
      child: MaterialApp(
        
          debugShowCheckedModeBanner: false,
          home: 
           isLoggedIn ? MyHomePage(): LogIn(),
          localizationsDelegates:
              translator.delegates, // Android + iOS Delegates
          locale: translator.locale, // Active locale
          supportedLocales: translator.locals(),
          .........
          ........

0 个答案:

没有答案