• This project
    • Loading...
  • Sign in

flutter_package / mobile_scanner

Go to a project
Toggle navigation
  • Projects
  • Groups
  • Snippets
  • Help
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • mobile_scanner
  • example
  • lib
  • picklist
  • widgets
  • crosshair.dart
  • wip · 3e8df61b
    3e8df61b Browse Directory
    Sander Roest authored 2024-09-17 10:58:46 +0200
crosshair.dart 383 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import 'package:flutter/material.dart';

class Crosshair extends StatelessWidget {
  const Crosshair({
    super.key,
    required this.scannerDisabled,
  });

  final bool scannerDisabled;

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Icon(
        Icons.close,
        color: scannerDisabled ? Colors.green : Colors.red,
      ),
    );
  }
}