Skip to content

EhabMagdyy/News-App-Flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

NewsMate.mp4

Allowing Internet Access on Android

To enable network access for your Android application, add the following permission to the android/app/src/main/AndroidManifest.xml file:

<uses-permission android:name="android.permission.INTERNET"/>

Building a Flutter APK

To generate an APK file for your Flutter project, use the following command:

flutter build apk --build-name=<version> --build-number=<number>

Example

flutter build apk --build-name=1.0 --build-number=1

This will produce a release-ready APK file.


Adding an App Icon

To add an app icon to your Flutter project, update the pubspec.yaml file with the following dependencies:

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^5.0.0
  flutter_launcher_icons: ^0.13.1

flutter_icons:
  android: true
  ios: true
  image_path: "assets/app_icon.png"
Generate Icons

Run the following commands to apply the app icon:

flutter pub get
dart run flutter_launcher_icons

Updating the Application Name

For Android

  1. Open the android/app/src/main/AndroidManifest.xml file.
  2. Locate the <application> tag and update the android:label attribute:
<application
    android:label="YourAppName"    <!-- Replace with your app's name -->
    android:icon="@mipmap/ic_launcher">

For iOS

  1. Open the ios/Runner/Info.plist file.
  2. Locate the <key>CFBundleName</key> entry and update the value:
<key>CFBundleName</key>
<string>YourAppName</string>    <!-- Replace with your app's name -->

About

Flutter News Application using newsapi.org API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages