Skip to content

Commit

Permalink
🚀 v2.0.0-beta-2 (Docs and minor improvements)
Browse files Browse the repository at this point in the history
## Release Highlights

- [x] Docs Update for v2.0.0-beta()
- [x] Minor UI and Code Fixes
- [x] Example app revamp to include all Widgets.
  • Loading branch information
deepraj02 authored Sep 3, 2023
2 parents 87eb706 + 390fdaf commit e7370a0
Show file tree
Hide file tree
Showing 30 changed files with 829 additions and 309 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@

# 2.0.0-beta-2(03-09-2023)

## Release Highlights

- [x] Docs Update for v2.0.0-beta()
- [x] Minor UI and Code Fixes
- [x] Example app revamp to include all Widgets.

# 2.0.0-beta (22-08-2023)

## Release Highlights
Expand Down
128 changes: 43 additions & 85 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="https://user-images.githubusercontent.com/63138398/225706659-4fa396f3-fc8a-4cdc-bbd4-3600b323db97.svg" alt="Button Preview" >

<h1 align="left">neubrutalism_ui v1.0.0</h1>
<h1 align="left">neubrutalism_ui v2.0.0 🥳</h1>
<p align="center">
<a href="https://github.com/deepraj02/neubrutalism_ui/issues">Request Feature</a>
<br>
Expand Down Expand Up @@ -82,114 +82,72 @@ NeuTextButton(
<!-- V 1.0.0 -->
```dart
NeuTextButton(
text: const Text(
"Hello ",
style: TextStyle(
fontSize: 40,
),
),
onPressed: () {
debugPrint("Helloo ");
},
),
borderRadius: BorderRadius.circular(12),
buttonColor:
const Color.fromARGB(255, 236, 199, 211),
buttonHeight: 60,
buttonWidth: 100,
enableAnimation: true,
text: Text(
"Hello",
style: GoogleFonts.robotoCondensed(
textStyle: const TextStyle(
fontSize: 20,
fontWeight: FontWeight.w700,
),
),
),
),
```
</td>
</tr>
</table>

# Usage

### NeuTextButton with Customization (v2.0.0)

### NeuTextButton with Customization (v2.0.0) : Enable Cool Animation
#### (Set `enableAnimation=true`)
Animations are currently mapped to the value fo offset provided in the `offset` property in the `NeuTextButton` and `NeuIconButton` widgets.
(P.S: More the Value of the offset more will be the onPressed bounce animation Value.)
<table>
<tr>
<td>

<!--TODO: Responsive on both sides (Use the Newer Code v2.0.0) -->

```dart
NeuTextButton(
text: const Text(
"Hello ",
style: TextStyle(
fontSize: 40,
),
),
onPressed: () {
debugPrint("Helloo ");
},
),
borderRadius: BorderRadius.circular(12),
buttonColor:
const Color.fromARGB(255, 236, 199, 211),
buttonHeight: 60,
buttonWidth: 100,
enableAnimation: true,
text: Text(
"Hello",
style: GoogleFonts.robotoCondensed(
textStyle: const TextStyle(
fontSize: 20,
fontWeight: FontWeight.w700,
),
),
),
),
```
</td>
<td>
<img src="https://user-images.githubusercontent.com/63138398/260050262-49206b74-1e74-4c07-8753-ecda4e512f42.png" alt="">
<img src="https://user-images.githubusercontent.com/63138398/265234887-341632d2-5b7c-4e09-b226-7982e4de86c6.gif" alt="">
</td>
</tr>
</table>


### The Neu - NeuContainer
The Main reason behind adding this NeuContainer Widget is to allow the Developers to Create Any custom Widgets which maynot be present in the Package, thus giving them full freedom to customize their Widgets without any restrictions.
### The Neu - NeuBottomNav

<table>
<tr>
<td>


<!-- TODO: Iska Kal dunga -->
```dart
NeuContainer(
height: 160,
width: 250,
child: Column(
children: [
const Text(
"This is NeuContainer",
style: TextStyle(fontSize: 23),
),
const SizedBox(
height: 20,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
Icon(
Icons.accessible_outlined,
size: 50,
),
Icon(
Icons.accessible_outlined,
size: 50,
),
Icon(
Icons.accessible_outlined,
size: 50,
),
Icon(
Icons.accessible_outlined,
size: 50,
),
],
),
],
),
),
```
</td>
<td>
<img src="https://user-images.githubusercontent.com/63138398/232233193-01c717a7-c1a6-4c69-b5a7-d8e39d1876eb.png" alt="">
</td>
</tr>
</table>

<!-- TODO: Fix : Make it responsive -->

#### Examples:
| Component Name | Code | Preview |
| -------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| TextButton | `NeuTextButton` | <img src="https://user-images.githubusercontent.com/63138398/225709552-5730bd9b-8e18-40c1-96e2-c45e7422a4c8.png" alt="Button Preview" > |
| NeuSearchBar | `NeuSearchBar` | <img src="https://user-images.githubusercontent.com/63138398/226177386-81a09de2-05f5-4848-8287-0fcbd20ba409.png" alt="NeuSearch Preview" > |
| NeuIconButton | `NeuIconButton` | <img src="https://user-images.githubusercontent.com/63138398/226177407-b435f7c2-6234-4943-a33e-6dbf1a714fa6.png" alt="Neu Icon Button Preview" > |
| NeuContainer | `NeuContainer` | <img src="https://user-images.githubusercontent.com/63138398/232233193-01c717a7-c1a6-4c69-b5a7-d8e39d1876eb.png" alt="NeuContainer" > |

<img src="https://user-images.githubusercontent.com/63138398/265235364-a0afb9b4-1bb7-437b-8cd1-795483e0d781.png" alt="">

## Roadmap

Expand All @@ -213,7 +171,7 @@ Contributions are what make the open source community such an amazing place to b

## License

Distributed under the MIT License. See [LICENSE](https://github.com/deepraj02/neubrutalism_ui/blob/main/LICENSE.md) for more information.
Distributed under the MIT License. See [LICENSE](https://github.com/deepraj02/neubrutalism_ui/blob/master/LICENSE.md) for more information.

## Authors
<!-- TODO: Add name -->
Expand Down
3 changes: 3 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
.history
.svn/
migrate_working_dir/
windows/
macos/
linux/

# IntelliJ related
*.iml
Expand Down
15 changes: 15 additions & 0 deletions example/.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,24 @@ migration:
- platform: root
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
- platform: android
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
- platform: ios
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
- platform: linux
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
- platform: macos
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
- platform: web
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
- platform: windows
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8

# User provided section

Expand Down
1 change: 1 addition & 0 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
namespace "com.example.example"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

Expand Down
3 changes: 1 addition & 2 deletions example/android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.example">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
Expand Down
5 changes: 2 additions & 3 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.example">
<application
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="example"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
Expand Down
3 changes: 1 addition & 2 deletions example/android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.example">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
1 change: 1 addition & 0 deletions example/ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
1 change: 1 addition & 0 deletions example/ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
44 changes: 44 additions & 0 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
target 'RunnerTests' do
inherit! :search_paths
end
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
23 changes: 23 additions & 0 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
PODS:
- Flutter (1.0.0)
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS

DEPENDENCIES:
- Flutter (from `Flutter`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)

EXTERNAL SOURCES:
Flutter:
:path: Flutter
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin"

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943

PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189

COCOAPODS: 1.12.1
Loading

0 comments on commit e7370a0

Please sign in to comment.