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
3 changes: 3 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter build web
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down
69 changes: 0 additions & 69 deletions .github/workflows/make_binaries.yml

This file was deleted.

15 changes: 11 additions & 4 deletions lib/app.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import 'package:flutter/material.dart';
import 'package:ins/theme.dart';
import 'package:ins/pages/home.dart' as home;

class ISApp extends StatelessWidget {
const ISApp({super.key});

@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'IS',
theme: ThemeData(),
home: Center(child: Text("Hello RB")),
return AnimatedBuilder(
animation: themeManager,
builder: (_, _) {
return MaterialApp(
title: 'IS',
theme: themeManager.getTheme(),
home: home.getPage(),
);
},
);
}
}
2 changes: 2 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'package:flutter/material.dart';
import 'package:ins/app.dart';
import 'package:ins/theme.dart';

void main() {
themeManager.initialize();
runApp(const ISApp());
}
6 changes: 6 additions & 0 deletions lib/pages/home.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'package:flutter/material.dart';
import 'welcomepage.dart';

Widget getPage() {
return WelcomePage();
}
24 changes: 24 additions & 0 deletions lib/pages/welcomepage.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import 'package:flutter/material.dart';

class WelcomePage extends StatelessWidget {
const WelcomePage({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Welcome')),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text('Welcome to the App!'),
ElevatedButton(
onPressed: () {},
child: const Text('Go to Home Page'),
),
],
),
),
);
}
}
Loading