Question: Write the number of days in months program so that the program prompts the user for the file name and reads the dates from the file.

The dates in the file are written in the format dd.mm.yyyy. The program looks for the month in each line (hint: use split) and prints out the number of days in that month.

Rewrite the function so that it does not contain conditional (if) statements for returning the number of days. The function should do it using a list. Do not add the check for a leap year (let’s say that there are 28 days in February).

I have this code:

```
dates = {}

file = input("Enter file name:")

file = open("dates.txt", "r")

for line in file:

  month = line.split(".")

  dates = month[1]

print (dates)

```

But it only reads the month from the text file. How do I add another formula to read the months and state the days instead, within this code without using "IF"?

Answer: 
**Yes**.

I could make it work by adding this at the end of the pubspec.yaml:

```
module:
  androidPackage: com.teste.embeded
  iosBundleIdentifier: com.teste.embeded

```

Add this and then call a *packages get*. This will create 2 hidden folders in your project structure: .android and .ios.

**Becareful with the identation!** This settings must be inside the `flutter:` tag, like this:

```
flutter:  
  uses-material-design: true
  assets:
    - images/a_dot_burr.jpeg
    - images/a_dot_ham.jpeg
  module:
    androidPackage: com.test.embeded
    iosBundleIdentifier: com.test.embeded

```

After doing this, follow the documentation for the Android/iOS sides (skip the module creating parts).

<https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps>
You can do that in tow ways:  

1- Convert your project to Flutter module and then put that along side the native project and call your FlutterActivity from native  

2- Convert your project to Flutter module and make an AAR from it ant import in the native project

Read this Flutter documentation:  

<https://flutter.dev/docs/development/add-to-app/android/project-setup>