<commit_before>import 'package:fivekmrun_flutter/state/user_resource.dart';
import 'package:flutter/material.dart';
import 'package:barcode_flutter/barcode_flutter.dart';
import 'package:provider/provider.dart';

class BarcodePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Consumer<UserResource>(builder: (context, userResource, child) {
      final user = userResource?.value;
      final userId = (user?.id != null) ? user?.id : 0;
      final userName = (user?.name != null) ? user?.name : "";
      
      return Scaffold(
          appBar: AppBar(
              leading: BackButton(color: Colors.white),
              title: Text("Barcode"),
              centerTitle: true,),
          backgroundColor: Colors.white,
          body: Center(child: Column(children: <Widget>[
            Text(userName, style: TextStyle(color: Colors.black)),
            BarCodeImage(
                params: Code39BarCodeParams(
              userId.toString().padLeft(10, '0'),
              lineWidth:
                  2.0, // width for a single black/white bar (default: 2.0)
              barHeight: 90.0, // height for the entire widget (default: 100.0)
              withText: false,
            )),
            Text(userId.toString(), style: TextStyle(color: Colors.black))
          ])));
    });
  }
}
<commit_msg>add padding for smaller devices<commit_after>import 'package:fivekmrun_flutter/state/user_resource.dart';
import 'package:flutter/material.dart';
import 'package:barcode_flutter/barcode_flutter.dart';
import 'package:provider/provider.dart';

class BarcodePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Consumer<UserResource>(builder: (context, userResource, child) {
      final user = userResource?.value;
      final userId = (user?.id != null) ? user?.id : 0;
      final userName = (user?.name != null) ? user?.name : "";
      
      return Scaffold(
          appBar: AppBar(
              leading: BackButton(color: Colors.white),
              title: Text("Barcode"),
              centerTitle: true,),
          backgroundColor: Colors.white,
          body: 
          Padding(
            padding: const EdgeInsets.all(8.0),
            child: Center(
              child: Column(children: <Widget>[
                Text(userName, style: TextStyle(color: Colors.black)),
                BarCodeImage(
                    params: Code39BarCodeParams(
                  userId.toString().padLeft(10, '0'),
                  lineWidth:
                      2.0, // width for a single black/white bar (default: 2.0)
                  barHeight: 90.0, // height for the entire widget (default: 100.0)
                  withText: false,
                  )),
                Text(userId.toString(), style: TextStyle(color: Colors.black))
            ])),
          ));
    });
  }
}

{'fraction_non_alphanumeric': 0.12020725388601036, 'fraction_numerical': 0.012435233160621761, 'mean_word_length': 2.1444082519001086, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4928671', 'n_tokens_mistral': 829, 'n_tokens_neox': 800, 'n_words': 182}