Skip to content

Commit 688a340

Browse files
committed
v1.3
1 parent cff3b25 commit 688a340

File tree

4 files changed

+33
-19
lines changed

4 files changed

+33
-19
lines changed

.metadata

-15
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,6 @@ migration:
1818
- platform: android
1919
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
2020
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
21-
- platform: ios
22-
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
23-
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
24-
- platform: linux
25-
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
26-
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
27-
- platform: macos
28-
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
29-
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
30-
- platform: web
31-
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
32-
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
33-
- platform: windows
34-
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
35-
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
3621

3722
# User provided section
3823

android/app/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (flutterVersionName == null) {
2424

2525
android {
2626
namespace "com.example.amalyot_uchun"
27-
compileSdkVersion 33
27+
compileSdkVersion flutter.compileSdkVersion
2828
ndkVersion flutter.ndkVersion
2929

3030
compileOptions {
@@ -45,8 +45,8 @@ android {
4545
applicationId "com.example.amalyot_uchun"
4646
// You can update the following values to match your application needs.
4747
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
48-
minSdkVersion 21
49-
targetSdkVersion 33
48+
minSdkVersion flutter.minSdkVersion
49+
targetSdkVersion flutter.targetSdkVersion
5050
versionCode flutterVersionCode.toInteger()
5151
versionName flutterVersionName
5252
}

android/gradle.properties

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
org.gradle.jvmargs=-Xmx4G
22
android.useAndroidX=true
33
android.enableJetifier=true
4-
dev.steenbakker.mobile_scanner.useUnbundled=true

test/widget_test.dart

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// This is a basic Flutter widget test.
2+
//
3+
// To perform an interaction with a widget in your test, use the WidgetTester
4+
// utility in the flutter_test package. For example, you can send tap and scroll
5+
// gestures. You can also use WidgetTester to find child widgets in the widget
6+
// tree, read text, and verify that the values of widget properties are correct.
7+
8+
import 'package:flutter/material.dart';
9+
import 'package:flutter_test/flutter_test.dart';
10+
11+
import 'package:amalyot_uchun/main.dart';
12+
13+
void main() {
14+
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15+
// Build our app and trigger a frame.
16+
await tester.pumpWidget(const MyApp());
17+
18+
// Verify that our counter starts at 0.
19+
expect(find.text('0'), findsOneWidget);
20+
expect(find.text('1'), findsNothing);
21+
22+
// Tap the '+' icon and trigger a frame.
23+
await tester.tap(find.byIcon(Icons.add));
24+
await tester.pump();
25+
26+
// Verify that our counter has incremented.
27+
expect(find.text('0'), findsNothing);
28+
expect(find.text('1'), findsOneWidget);
29+
});
30+
}

0 commit comments

Comments
 (0)