Urgent.News

What's breaking now, across hundreds of outlets.

Tech

barcode_gen: باركود 1D لـ Flutter يُرسم على بكسلات كاملة ويُصدَّر إلى SVG

الباركود على الشاشة أو على ملصق مطبوع له مهمة واحدة: أن يقرأه الماسح من أول مرة. وهناك أمران يعترضان ذلك في العادة. الأول هو الترميز نفسه: أرقام التحقق (check digits)، وأشرطة الحماية (guard bars)، وتبديل مجموعات الرموز في Code 128، وفواصل FNC1 في GS1-128، كلها لها قواعد دقيقة. والثاني هو الرسم. الباركود سلسلة أشرطة عرض كل واحد منها من مضاعفات وحدة واحدة تسمّى module. إذا كان عرض الـ module يساوي…

In Arabic Read in English

الباركود الخطي (1D) لـ Dart و Flutter يُسمى barcode_gen ويُصمم للعمل على بكسلات كاملة، مما يجعله مناسبًا للتصدير إلى نماذج SVG و PNG. ينشئ هذا الأداة أربعة أنواع من الباركود: EAN-13، EAN-8، UPC-A، و UPC-E، وهي كلها مطابقة للمعايير ISO/IEC. في الباركود، يتم تمثيل كل module بحواف بيضاء ضبابية في بعض الأحيان بسبب عرض module يساوي 1.7 بكسل. لإنشاء باركود، يجب تحديد النوع، البيانات، الارتفاع، عرض module، ولوني الأشرطة والخلفية. التحويل بين UPC-E و UPC-A يتم بشكل صحيح بناءً على قواعد GS1، والمرمِّزات تدعم نظامي الترقيم 0 و1. أضف barcode_gen إلى المتطلبات باستخدام الكود التالي: dependencies: barcode_gen: git: https://github.com/AbdeldjalilChougui/barcode_gen. بعد ذلك، استورد الأداة في ملف Dart وأنشئ widget BarcodeView بالطريقة الموضحة في المثال.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

More from Dev.to on urgent.news

Get the news by email. Yesterday's most-covered stories, every morning.

See today's edition · More options

More in Tech

Apple’s Best iPhone Apps of 2026 Might Surprise You

Apple has announced the winners of its 2026 App Store Awards, recognizing 17 applications and games selected from 45 finalists …

  • Not Boring's camera app wins iPhone App of the Year award
  • Krager Labs' Hearing Buddy receives Cultural Impact award
  • Unique camera app and real-time transcription service stand out

The Ups and Downs of Robot Sounds

Some of the most beloved robots of science fiction don’t use speech to communicate. Instead, robots like R2-D2, WALL-E, and Iron Giant rely on functional sounds (beeps, whirs), transformative sounds…

More from Saturday, 5 December 2026 →