feat: Implement Flutter flavors for dev, stage, and prod environments with corresponding configurations and build scripts.

This commit is contained in:
Achintha Isuru
2025-12-03 01:41:15 -05:00
parent 02470e196f
commit 323968c79c
8 changed files with 223 additions and 122 deletions

View File

@@ -7,13 +7,21 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:krow_staff/main.dart';
import 'package:krow_staff/app_config.dart';
import 'package:krow_staff/my_app.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
await tester.pumpWidget(
MyApp(
config: AppConfig(
environment: Environment.dev,
appTitle: 'Test App',
apiBaseUrl: 'https://test.com',
),
),
);
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);