Skip to content

Commit

Permalink
Merge pull request #70 from KlubJagiellonski/release/v2.0.6
Browse files Browse the repository at this point in the history
Produkcja/release -> main
  • Loading branch information
piotrrys authored Mar 11, 2024
2 parents 93f4f99 + 90bbecf commit 09b59e4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
8 changes: 5 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class _PolaAppState extends State<PolaApp> {
]);
return MaterialApp(
theme: ThemeData(
primarySwatch: Colors.red,
colorScheme: ColorScheme.light().copyWith(primary: Colors.red),
),
onGenerateRoute: RouteGenerator.generateRoute,
home: DefaultTabController(
Expand Down Expand Up @@ -77,9 +77,11 @@ class _PolaAppState extends State<PolaApp> {
case 0:
return MainPage();
case 1:
return WebViewTabPage(title: "Wyszukiwarka", url: "https://www.pola-app.pl/m/search/");
return WebViewTabPage(
title: "Wyszukiwarka", url: "https://www.pola-app.pl/m/search/");
case 2:
return WebViewTabPage(title: "Wiadomości", url: "https://www.pola-app.pl/m/blog/");
return WebViewTabPage(
title: "Wiadomości", url: "https://www.pola-app.pl/m/blog/");
default:
return MainPage();
}
Expand Down
18 changes: 12 additions & 6 deletions lib/pages/scan/scan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class MainPage extends StatefulWidget {

class _MainPageState extends State<MainPage> {
late ScanBloc _scanBloc;
MobileScannerController cameraController = MobileScannerController(detectionSpeed: DetectionSpeed.normal);
MobileScannerController cameraController =
MobileScannerController(detectionSpeed: DetectionSpeed.normal);
final PolaAnalytics _analytics = PolaAnalytics.instance();

ScrollController listScrollController = ScrollController();
Expand All @@ -37,13 +38,15 @@ class _MainPageState extends State<MainPage> {
onPressed: () {
cameraController.toggleTorch();
},
icon: Image.asset("assets/ic_flash_on_white_48dp.png"),
icon: Image.asset("assets/ic_flash_on_white_48dp.png",
height: AppBar().preferredSize.height),
),
),
leading: IconButton(
onPressed: () {
_analytics.aboutPolaOpened();
Navigator.pushNamed(context, '/web', arguments: "https://www.pola-app.pl/m/about");
Navigator.pushNamed(context, '/web',
arguments: "https://www.pola-app.pl/m/about");
},
icon: Image.asset("assets/ic_launcher.png"),
),
Expand Down Expand Up @@ -91,7 +94,8 @@ class _MainPageState extends State<MainPage> {
builder: (context, state) {
switch (state.runtimeType) {
case ScanLoaded:
return CompaniesList(state as ScanLoaded, listScrollController);
return CompaniesList(
state as ScanLoaded, listScrollController);
default:
return Container();
}
Expand All @@ -106,8 +110,10 @@ class _MainPageState extends State<MainPage> {
}

Widget _buildQrView(BuildContext context) {
var scanArea =
(MediaQuery.of(context).size.width < 400 || MediaQuery.of(context).size.height < 400) ? 250.0 : 300.0;
var scanArea = (MediaQuery.of(context).size.width < 400 ||
MediaQuery.of(context).size.height < 400)
? 250.0
: 300.0;
return Stack(
children: [
Positioned.fill(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 2.0.6+46
version: 2.0.8+49

environment:
sdk: ">=2.17.0 <3.0.0"
Expand Down

0 comments on commit 09b59e4

Please sign in to comment.