vastu_compass 0.0.2 copy "vastu_compass: ^0.0.2" to clipboard
vastu_compass: ^0.0.2 copied to clipboard

Cross-Platform Vastu Compass for iOS and Android Effortlessly align your home or workspace with Vastu Shastra using our powerful sixteen-direction compass. This intuitive tool helps you identify misal [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:vastu_compass/models/vastu_category_model.dart';
import 'package:vastu_compass/vastu_compass.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // TRY THIS: Try running your application with "flutter run". You'll see
        // the application has a purple toolbar. Then, without quitting the app,
        // try changing the seedColor in the colorScheme below to Colors.green
        // and then invoke "hot reload" (save your changes or press the "hot
        // reload" button in a Flutter-supported IDE, or press "r" if you used
        // the command line to start the app).
        //
        // Notice that the counter didn't reset back to zero; the application
        // state is not lost during the reload. To reset the state, use hot
        // restart instead.
        //
        // This works for code too, not just values: Most code changes can be
        // tested with just a hot reload.
        colorScheme: ColorScheme.fromSeed(
          seedColor: Colors.deepPurple,
        ),
      ),
      home: const MyHomePage(
        title: 'Flutter Demo Home Page',
      ),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({
    super.key,
    required this.title,
  });

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  State<MyHomePage> createState() =>
      _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // TRY THIS: Try changing the color here to a specific color (to
        // Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
        // change color while the other colors stay the same.
        backgroundColor:
            Theme.of(
              context,
            ).colorScheme.inversePrimary,
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          //
          // TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint"
          // action in the IDE, or press "p" in the console), to see the
          // wireframe for each widget.
          mainAxisAlignment:
              MainAxisAlignment.start,
          children: <Widget>[
            VastuCompass(
              aCategoryDataModel: VastuCategoryDataModel.fromJson({
                "selectedCategoryData": [
                  {
                    "direction": "North",
                    "zone": "Best",
                    "effect": [
                      "Bedroom in North zone promotes prosperity",
                      "Bedroom in this zone promotes good helath",
                      "This Zone promotes peaceful sleep"
                    ],
                    "compass_direction": "N",
                    "start_angle": 348.75,
                    "end_angle": 11.25,
                    "element": "water",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "N1",
                    "devta": "Roga"
                  },
                  {
                    "direction": "North-Northeast (NNE)",
                    "zone": "Bad",
                    "effect": [
                      "Bedroom in this zone cause health issues",
                      "Bedroom here makes immunity system weak",
                      ""
                    ],
                    "compass_direction": "NNE",
                    "start_angle": 11.25,
                    "end_angle": 33.75,
                    "element": "water",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "N2",
                    "devta": "Naga"
                  },
                  {
                    "direction": "Northeast (NE)",
                    "zone": "Good",
                    "effect": [
                      "Bedroom here brings peace and prosperity.",
                      "This zone is good for little children and old age people.",
                      "This NE  Zone is not promising for young and married girls."
                    ],
                    "compass_direction": "NE",
                    "start_angle": 33.75,
                    "end_angle": 56.25,
                    "element": "water",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "E1",
                    "devta": "Roga"
                  },
                  {
                    "direction": "East-Northeast (ENE)",
                    "zone": "Good",
                    "effect": [
                      "Bedroom in this Zone gives  joy and happiness",
                      "Bedroom in ENE zone bring good news ",
                      "Ideal Zone for pregnant ladies"
                    ],
                    "compass_direction": "ENE",
                    "start_angle": 56.25,
                    "end_angle": 78.75,
                    "element": "air",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "E2",
                    "devta": "Naga"
                  },
                  {
                    "direction": "East",
                    "zone": "Good",
                    "effect": [
                      "Bedroom here brings vitality and freshness.",
                      "East zone good for social connectivity",
                      "This Zone brings career growth."
                    ],
                    "compass_direction": "E",
                    "start_angle": 78.75,
                    "end_angle": 101.25,
                    "element": "air",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "E3",
                    "devta": "Roga"
                  },
                  {
                    "direction": "East-Southeast (ESE)",
                    "zone": "Bad",
                    "effect": [
                      "ESE zone brings anxiety",
                      "Bedroom here give mental stress",
                      "This Zone causes couple disputes"
                    ],
                    "compass_direction": "ESE",
                    "start_angle": 101.25,
                    "end_angle": 123.75,
                    "element": "air",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "E4",
                    "devta": "Naga"
                  },
                  {
                    "direction": "Southeast (SE)",
                    "zone": "Bad",
                    "effect": [
                      "Bedroom in SE zone cause selfish aggressive nature",
                      "This zone gives unrest among family members.",
                      "Sourth-east zone leads to instability in career."
                    ],
                    "compass_direction": "SE",
                    "start_angle": 123.75,
                    "end_angle": 146.25,
                    "element": "fire",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "S1",
                    "devta": "Roga"
                  },
                  {
                    "direction": "South-Southeast (SSE)",
                    "zone": "Good",
                    "effect": [
                      "Bedroom here helps person gain confidence",
                      "This Zone promotes excellent mental-physical strength.",
                      ""
                    ],
                    "compass_direction": "SSE",
                    "start_angle": 146.25,
                    "end_angle": 168.75,
                    "element": "fire",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "S2",
                    "devta": "Naga"
                  },
                  {
                    "direction": "South",
                    "zone": "Best",
                    "effect": [
                      "Bedroom here gives calmness ",
                      "This Zone gives peaceful healthy sleep.",
                      ""
                    ],
                    "compass_direction": "S",
                    "start_angle": 168.75,
                    "end_angle": 191.25,
                    "element": "fire",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "S3",
                    "devta": "Roga"
                  },
                  {
                    "direction": "South-Southwest (SSW)",
                    "zone": "Bad",
                    "effect": [
                      "Bedroom in this zone bring high expenditure",
                      "Bedroom here brings bodyache arthiritis",
                      ""
                    ],
                    "compass_direction": "SSW",
                    "start_angle": 191.25,
                    "end_angle": 213.75,
                    "element": "earth",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "S4",
                    "devta": "Naga"
                  },
                  {
                    "direction": "Southwest (SW)",
                    "zone": "Good",
                    "effect": [
                      "Ideal zone for head of the family",
                      "ideal zone for married couples.",
                      "not ideal for aged people and children."
                    ],
                    "compass_direction": "SW",
                    "start_angle": 213.75,
                    "end_angle": 236.25,
                    "element": "earth",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "W1",
                    "devta": "Roga"
                  },
                  {
                    "direction": "West-Southwest (WSW)",
                    "zone": "Best",
                    "effect": [
                      "Ideal zone for peace stability in the family",
                      "WSW zone brings gains",
                      "Best Zone for Students"
                    ],
                    "compass_direction": "WSW",
                    "start_angle": 236.25,
                    "end_angle": 258.75,
                    "element": "space",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "W2",
                    "devta": "Naga"
                  },
                  {
                    "direction": "West",
                    "zone": "Good",
                    "effect": [
                      "This Zone is good for peace harmony.",
                      "West Zone demands watchulness about talks",
                      ""
                    ],
                    "compass_direction": "W",
                    "start_angle": 258.75,
                    "end_angle": 281.25,
                    "element": "space",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "W3",
                    "devta": "Roga"
                  },
                  {
                    "direction": "West-Northwest (WNW)",
                    "zone": "very bad",
                    "effect": [
                      "This WNW zone gives anxiety and depression.",
                      "This zone brings suicidal thoughts",
                      "This Zone brings unknown fear-phobias"
                    ],
                    "compass_direction": "WNW",
                    "start_angle": 281.25,
                    "end_angle": 303.75,
                    "element": "space",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "W4",
                    "devta": "Naga"
                  },
                  {
                    "direction": "Northwest (NW)",
                    "zone": "Not Ideal",
                    "effect": [
                      "North-West Zone leads to emotional conflicts",
                      "Bedroom in NW-zone give unstable relationship.",
                      "This Zones gives cough-cold issues"
                    ],
                    "compass_direction": "NW",
                    "start_angle": 303.75,
                    "end_angle": 326.25,
                    "element": "space",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "N3",
                    "devta": "Roga"
                  },
                  {
                    "direction": "North-Northwest (NNW)",
                    "zone": "Good",
                    "effect": [
                      "Bedroom in this zone excellent for newly married ones",
                      "This Zone brings attraction among couples",
                      ""
                    ],
                    "compass_direction": "NNW",
                    "start_angle": 326.25,
                    "end_angle": 348.75,
                    "element": "water",
                    "remedies_primary": [],
                    "remedies_secondary": [],
                    "facing": "N4",
                    "devta": "Naga"
                  }
                ]
              }),
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
0
likes
0
points
130
downloads

Publisher

unverified uploader

Weekly Downloads

Cross-Platform Vastu Compass for iOS and Android Effortlessly align your home or workspace with Vastu Shastra using our powerful sixteen-direction compass. This intuitive tool helps you identify misaligned zones and provides detailed guidance to correct them. Explore comprehensive Effects and Remedies for each direction to enhance harmony, energy, and well-being in your environment.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_compass, flutter_svg, google_fonts, json_annotation, json_serializable, permission_handler

More

Packages that depend on vastu_compass