diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml new file mode 100644 index 0000000..ff94d1c --- /dev/null +++ b/.github/workflows/ci_cd.yml @@ -0,0 +1,58 @@ +name: Main branch + +on: + + push: + branches: [ main ] + + + +jobs: + + build: + runs-on: ubuntu-latest + steps: + + + - name : Checkout Repo + uses: actions/checkout@v2 + + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: '12.x' + + - name : Setup Flutter + uses: subosito/flutter-action@v1 + with: + flutter-version: '3.13.3' + + - name: Flutter Pub get + run : | + echo flutter clean + echo flutter pub get + + - name : Flutter Analyze + run : flutter analyze + + # - name : Run Test + # run : flutter test + + # - name : Run Test Coverage + # run : flutter test --coverage + + - name : Install lcov + run : sudo apt-get install -y lcov + + + - name : Upload Coverage To Codecov + uses: codecov/codecov-action@v2 + # with: + # token: ${{ secrets.CODECOV_TOKEN }} + # files: coverage/lcov.info + + - name : Build Apk + run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi + + + \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ff94d1c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,58 @@ +name: Main branch + +on: + + push: + branches: [ main ] + + + +jobs: + + build: + runs-on: ubuntu-latest + steps: + + + - name : Checkout Repo + uses: actions/checkout@v2 + + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: '12.x' + + - name : Setup Flutter + uses: subosito/flutter-action@v1 + with: + flutter-version: '3.13.3' + + - name: Flutter Pub get + run : | + echo flutter clean + echo flutter pub get + + - name : Flutter Analyze + run : flutter analyze + + # - name : Run Test + # run : flutter test + + # - name : Run Test Coverage + # run : flutter test --coverage + + - name : Install lcov + run : sudo apt-get install -y lcov + + + - name : Upload Coverage To Codecov + uses: codecov/codecov-action@v2 + # with: + # token: ${{ secrets.CODECOV_TOKEN }} + # files: coverage/lcov.info + + - name : Build Apk + run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi + + + \ No newline at end of file diff --git a/.github/workflows/working_branch.yml b/.github/workflows/working_branch.yml new file mode 100644 index 0000000..56f8f78 --- /dev/null +++ b/.github/workflows/working_branch.yml @@ -0,0 +1,45 @@ +name: develop branch + +on: + + push: + branches: [ develop ] + + + +jobs: + + build: + runs-on: ubuntu-latest + steps: + + + - name : Checkout Repo + uses: actions/checkout@v2 + + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: '12.x' + + - name : Setup Flutter + uses: subosito/flutter-action@v1 + with: + flutter-version: '3.13.3' + + - name: Flutter Pub get + run : | + echo flutter clean + echo flutter pub get + + - name : Flutter Analyze + run : flutter analyze + + + + + - name : Build Apk + run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi + + + \ No newline at end of file diff --git a/lib/presentation/views/rainy.dart b/lib/presentation/views/rainy.dart index 243cab3..0151c56 100644 --- a/lib/presentation/views/rainy.dart +++ b/lib/presentation/views/rainy.dart @@ -127,7 +127,6 @@ class DaysWeatherView extends StatelessWidget { padding: const EdgeInsets.all(8.0), child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Expanded( child: Text( @@ -140,11 +139,11 @@ class DaysWeatherView extends StatelessWidget { color: Colors.white, ), ), - Expanded( - child: Text( + const SizedBox(width: 60), + Text( "${e.temperature} °", style: const TextStyle(color: Colors.white), - )), + ), ], ), )) diff --git a/lib/services/weather_service.dart b/lib/services/weather_service.dart index c3b0253..e8077c1 100644 --- a/lib/services/weather_service.dart +++ b/lib/services/weather_service.dart @@ -2,7 +2,7 @@ import 'package:location/location.dart'; class WeatherService { static Future getWeather() async { - final String key = ''; + const String key = ''; LocationData location = await Location().getLocation(); } }