{"id":25227794,"url":"https://github.com/evokelektrique/flutter-cs16-theme","last_synced_at":"2026-05-02T06:42:09.335Z","repository":{"id":276450148,"uuid":"929313330","full_name":"evokelektrique/flutter-cs16-theme","owner":"evokelektrique","description":"Counter-Strike 1.6 inspired UI theme for Flutter","archived":false,"fork":false,"pushed_at":"2025-02-08T10:17:48.000Z","size":306,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T10:28:30.714Z","etag":null,"topics":["counter-strike","cs16","flutter","flutter-theme","flutter-ui","ui-components"],"latest_commit_sha":null,"homepage":"https://evokelektrique.github.io/flutter-cs16-theme/","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evokelektrique.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-08T08:53:21.000Z","updated_at":"2025-02-08T10:16:22.000Z","dependencies_parsed_at":"2025-02-08T10:38:38.345Z","dependency_job_id":null,"html_url":"https://github.com/evokelektrique/flutter-cs16-theme","commit_stats":null,"previous_names":["evokelektrique/flutter-cs16-theme"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokelektrique%2Fflutter-cs16-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokelektrique%2Fflutter-cs16-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokelektrique%2Fflutter-cs16-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evokelektrique%2Fflutter-cs16-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evokelektrique","download_url":"https://codeload.github.com/evokelektrique/flutter-cs16-theme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339155,"owners_count":20923014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["counter-strike","cs16","flutter","flutter-theme","flutter-ui","ui-components"],"created_at":"2025-02-11T09:10:09.029Z","updated_at":"2026-05-02T06:42:04.304Z","avatar_url":"https://github.com/evokelektrique.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv style=\"display: flex; align-items: center; gap: 20px;\"\u003e\n  \u003cimg src=\"./screenshot.png\" width=\"300\" alt=\"CS16 Theme Preview\"\u003e\n  \u003cdiv\u003e\n    \u003ch1\u003eFlutter CS16 Theme\u003c/h1\u003e\n    \u003cp\u003e\n      A \u003cstrong\u003eCounter-Strike 1.6 (CS16) inspired UI theme\u003c/strong\u003e for Flutter applications.  \n      This package provides \u003cstrong\u003ecustom widgets and styles\u003c/strong\u003e that replicate the  \n      \u003cstrong\u003eclassic FPS game's UI\u003c/strong\u003e, including buttons, dividers, dialogs,  \n      progress bars, and tab navigation.\n    \u003c/p\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n\n## **📌 Features**\n- **Custom CS16-Inspired UI Components**\n  - **CS16Button** – Retro-styled buttons with interactive states.\n  - **CS16Divider** – Two-tone horizontal dividers for section separation.\n  - **CS16Dialog** – Themed dialog boxes matching CS16's aesthetic.\n  - **CS16ProgressBar** – Segmented progress bar with CS16-inspired design.\n  - **CS16Tabs** – Tab navigation with pixelated CS16-style tabs.\n- **Dark theme with CS16 colors (`CS16Theme`)**.\n- **Minimalist, lightweight, and customizable UI components**.\n- **No external dependencies** (other than Flutter's core widgets).\n- **Perfect for FPS-style menus, settings screens, and HUDs**.\n\n---\n\n## **📦 Installation**\n\n### **1. Add Dependency**\nAdd the following to `pubspec.yaml`:\n\n```yaml\ndependencies:\n  flutter:\n    sdk: flutter\n  flutter_cs16_theme:\n    git:\n      url: https://github.com/evokelektrique/flutter-cs16-theme.git\n```\n\n### **2. Import the Library**\n```dart\nimport 'package:flutter_cs16_theme/flutter_cs16_theme.dart';\n```\n\n---\n\n## **🚀 Example Usage**\n### **Basic UI with CS16 Theme**\nThis example showcases a **menu-style layout** using CS16 buttons, dividers, a progress bar, and tab navigation.\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:flutter_cs16_theme/flutter_cs16_theme.dart';\n\nvoid main() {\n  runApp(MyApp());\n}\n\nclass MyApp extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      theme: CS16Theme.darkTheme, // Apply CS16 Dark Theme\n      home: Scaffold(\n        body: Column(\n          mainAxisAlignment: MainAxisAlignment.center,\n          children: [\n            CS16Button(\n              text: \"Start Game\",\n              onPressed: () =\u003e print(\"Game Started!\"),\n            ),\n            CS16Divider(), // Retro-style divider\n            CS16ProgressBar(progress: 0.75), // 75% progress\n            CS16Tabs(\n              tabs: [\"Weapons\", \"Settings\"],\n              tabViews: [\n                Center(child: Text(\"Weapon List\")),\n                Center(child: Text(\"Game Settings\")),\n              ],\n            ),\n          ],\n        ),\n      ),\n    );\n  }\n}\n```\n\n---\n\n## **🎨 Theme Configuration**\nThe **CS16 Dark Theme** provides **a retro aesthetic**. You can apply it globally using:\n\n```dart\nMaterialApp(\n  theme: CS16Theme.darkTheme,\n  home: MyApp(),\n);\n```\n\nThe theme applies CS16 colors to:\n- **Backgrounds**\n- **Buttons**\n- **AppBars**\n- **Text styles**\n\n---\n\n## **🔹 Widget Documentation**\n\n### **1️⃣ CS16Button**\nA **Counter-Strike 1.6 style button** with a pixelated, low-resolution look.\n\n```dart\nCS16Button(\n  text: \"Join Server\",\n  onPressed: () {},\n  fontSize: 14, // Custom text size\n  backgroundColor: Colors.black, // Custom button background\n  textColor: Colors.green, // Custom text color\n);\n```\n\n---\n\n### **2️⃣ CS16Divider**\nA **simple two-tone divider** for UI section separation.\n\n```dart\nCS16Divider();\n```\n\n---\n\n### **3️⃣ CS16Dialog**\nA **classic CS16-style dialog box**.\n\n```dart\nshowDialog(\n  context: context,\n  builder: (context) {\n    return CS16Dialog(\n      title: \"Error\",\n      content: \"Connection lost.\",\n      actions: [\n        CS16Button(\n          text: \"Retry\",\n          onPressed: () {\n            Navigator.pop(context);\n          },\n        ),\n      ],\n    );\n  },\n);\n```\n\n---\n\n### **4️⃣ CS16ProgressBar**\nA **segmented progress bar** that visually represents a loading state.\n\n```dart\nCS16ProgressBar(\n  progress: 0.5, // 50% progress\n  width: 300, // Custom width\n  height: 30, // Custom height\n  segments: 25, // More segments for finer granularity\n);\n```\n\n---\n\n### **5️⃣ CS16Tabs**\nA **CS16-themed tab navigation system**.\n\n```dart\nCS16Tabs(\n  tabs: [\"Servers\", \"Friends\"],\n  tabViews: [\n    Center(child: Text(\"Server List\")),\n    Center(child: Text(\"Friend List\")),\n  ],\n);\n```\n\n---\n\n## **📄 License**\nThis project is licensed under the MIT License.\n\n---\n\n## **👨‍💻 Contributing**\nFeel free to submit **issues, feature requests, and pull requests** to improve this project.\n\n---\n\n## **❓ FAQ**\n### **1. How do I change the colors?**\nEach component allows custom colors. For example:\n```dart\nCS16Button(\n  text: \"Exit\",\n  backgroundColor: Colors.red, // Custom color\n);\n```\n\n### **2. Can I use this theme with existing Flutter projects?**\nYes! Just apply `CS16Theme.darkTheme` in your `MaterialApp`.\n\n### **3. How can I report a bug or suggest a feature?**\nOpen an issue on [GitHub](https://github.com/evokelektrique/flutter_cs16_theme/issues).\n\n---\n\nThis package is perfect for **FPS-style applications, retro game UIs, and CS16-inspired apps**! 🎮\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevokelektrique%2Fflutter-cs16-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevokelektrique%2Fflutter-cs16-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevokelektrique%2Fflutter-cs16-theme/lists"}