Skip to content

Commit

Permalink
Merge pull request #11 from KlubJagiellonski/feature/3
Browse files Browse the repository at this point in the history
fixes review/3
  • Loading branch information
karolgeneral authored Jul 5, 2024
2 parents 4c5c5f8 + eb94595 commit b273ee7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
30 changes: 18 additions & 12 deletions lib/barcode_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,25 @@ class BarcodeDetailPage extends StatelessWidget {

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Opis Kodu Kreskowego'),
automaticallyImplyLeading: false, // removes button "Back"
),
return Scaffold(
body: Center(
child: BarcodeWidget(
barcode: barcode.type,
data: barcode.data,
width: 300,
height: 150,
drawText: true,
style: const TextStyle(fontSize: 16, letterSpacing: 1.5),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
barcode.description,
style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
),
const SizedBox(height: 20),
BarcodeWidget(
barcode: barcode.type,
data: barcode.data,
width: 300,
height: 150,
drawText: true,
style: const TextStyle(fontSize: 16, letterSpacing: 1.5),
),
],
),
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/barcodes_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter/material.dart';
import 'barcode_item.dart';
import 'package:barcode_widget/barcode_widget.dart';
import 'barcode_detail_page.dart';
Expand Down

0 comments on commit b273ee7

Please sign in to comment.