Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Global owner: This ensures the specified person is automatically requested for review on every single PR opened in this repository.
* @AbhishekDoshi26
30 changes: 6 additions & 24 deletions clear_skies/FLUTTERCON_DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,34 +39,16 @@ This guide provides step-by-step instructions for the team on stage to execute t
Open your IDE (VS Code / Android Studio) and use **Global Search** for the keyword:
👉 `TODO(Demo)`

This will instantly take you to the three bugs. Revert them back to their correct state:
This will instantly take you to the three bugs. To fix them, simply uncomment the `CORRECT VERSION` block and comment out or delete the `BUG VERSION` block:

- **Bug 1: `lib/core/constants/app_strings.dart`**
```diff
- static const String appName = 'Unclear Skies';
+ static const String appName = 'Clear Skies';

- static const String welcomeTitle = 'Welcome to Unclear Skies';
- static const String welcomeSubtitle = 'Discover the world\'s worst weather';
+ static const String welcomeTitle = 'Welcome to Clear Skies';
+ static const String welcomeSubtitle = 'Discover the world\'s weather';
```
Uncomment the correct strings for `appName`, `welcomeTitle`, and `welcomeSubtitle` and comment out the buggy ones.

- **Bug 2: `lib/core/constants/app_colors.dart`**
```diff
- Color(0xFF39FF14), // Neon Green
- Color(0xFFF0FF00), // Toxic Yellow
- Color(0xFFFF0000), // Bright Red
+ Color(0xFF4CA1AF), // Vibrant Sky Blue
+ Color(0xFF90C8D1), // Mid Cyan
+ Color(0xFFC4E0E5), // Soft Horizon Cyan
```
Uncomment the beautiful sky blue `dayGradient` and comment out the toxic green/red gradient.

- **Bug 3: `lib/features/weather/ui/widgets/welcome_hero_widget.dart`**
```diff
- widget.onCityTapped!('Antarctica');
+ widget.onCityTapped!(city);
```
Uncomment the correct `widget.onCityTapped!(city)` and comment out the one hardcoded to `'Antarctica'`.

### 3. Push the Patch via Shorebird
In your terminal, run the patch command to send the fix over the air:
Expand All @@ -82,5 +64,5 @@ shorebird patch android
3. **Boom!** The toxic green is gone, the title is "Clear Skies", and Tokyo brings up Tokyo's weather. No app store update required!

> [!TIP]
> **Need to run the demo multiple times?**
> If you need to practice or do the demo again for a different audience, you can easily downgrade the app on the device by uninstalling it and re-running the `adb install` command with the original buggy APK (Step 1.2), then reverting your local code changes back to the buggy state.
> **Resetting for the Next Booth Demo Loop 🔁**
> Since this will be demoed continuously at the booth throughout the day, resetting is simple. Just uninstall the app on the device (or clear its data) and re-install the original buggy APK (Step 1.2) to wipe out the downloaded Shorebird patch. Then, revert your local IDE code changes back to the `BUG VERSION` state, and you're ready for the next person!
9 changes: 9 additions & 0 deletions clear_skies/lib/core/constants/app_colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ class AppColors {

// Immersive Gradients
// TODO(Demo): Revert this ugly toxic gradient back to sky blues during live patch!

// -- CORRECT VERSION (Uncomment this) --
// static const List<Color> dayGradient = [
// Color(0xFF4CA1AF), // Vibrant Sky Blue
// Color(0xFF90C8D1), // Mid Cyan
// Color(0xFFC4E0E5), // Soft Horizon Cyan
// ];

// -- BUG VERSION (Comment this out) --
static const List<Color> dayGradient = [
Color(0xFF39FF14), // Neon Green
Color(0xFFF0FF00), // Toxic Yellow
Expand Down
8 changes: 8 additions & 0 deletions clear_skies/lib/core/constants/app_strings.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
class AppStrings {
// TODO(Demo): Fix this typo during live patch!
// -- CORRECT VERSION --
// static const String appName = 'Clear Skies';
// -- BUG VERSION --
static const String appName = 'Unclear Skies';

static const String searchHint = 'Search city...';

// TODO(Demo): Fix these strings during live patch!
// -- CORRECT VERSION --
// static const String welcomeTitle = 'Welcome to Clear Skies';
// static const String welcomeSubtitle = 'Discover the world\'s weather';
// -- BUG VERSION --
static const String welcomeTitle = 'Welcome to Unclear Skies';
static const String welcomeSubtitle = 'Discover the world\'s worst weather';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ class _WelcomeHeroWidgetState extends State<WelcomeHeroWidget>
onTap: () {
if (widget.onCityTapped != null) {
// TODO(Demo): Remove this logic bug during live patch and pass city here!

// -- CORRECT VERSION --
// widget.onCityTapped!(city);

// -- BUG VERSION --
widget.onCityTapped!('Antarctica');
}
},
Expand Down