Skip to content

Instantly share code, notes, and snippets.

View zohaib304's full-sized avatar
:octocat:
Working

Zohaib zohaib304

:octocat:
Working
View GitHub Profile
@zohaib304
zohaib304 / main.dart
Created July 28, 2022 08:36
Dart List of Objects
void main() {
List<Map<String, dynamic>> myList = [
{
"Name": "Vent"
},
{
"Name": "Product"
@Piinks
Piinks / main.dart
Created August 9, 2023 18:29
New Slivers
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@Piinks
Piinks / main.dart
Last active January 18, 2024 21:24
Two Dimensional Grid in Flutter
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';