This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:signals/signals_flutter.dart'; | |
import 'package:google_fonts/google_fonts.dart'; | |
import 'package:mix/mix.dart'; | |
const _colors = ColorTokens(); | |
const _fonts = TextStyleTokens(); | |
final seedColor = signal(const Color(0xFF7326E0)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- add tables | |
CREATE TABLE nodes ( | |
id INTEGER PRIMARY KEY AUTOINCREMENT, | |
x INTEGER NOT NULL DEFAULT (0), | |
y INTEGER NOT NULL DEFAULT (0), | |
width INTEGER NOT NULL DEFAULT (0), | |
height INTEGER NOT NULL DEFAULT (0), | |
name TEXT NOT NULL | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"path/filepath" | |
"strconv" | |
"strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:signals/signals.dart'; | |
void main() { | |
final cubit = CounterBloc(); | |
print(cubit.state); // 0 | |
cubit.add(CounterIncrementPressed()); | |
print(cubit.state); // 1 | |
cubit.dispose(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:signals/signals.dart'; | |
void main() { | |
final cubit = CounterCubit(); | |
print(cubit.state); // 0 | |
cubit.increment(); | |
print(cubit.state); // 1 | |
cubit.dispose(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:signals/signals_flutter.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
final helloWorldProvider = Provider(() { | |
return signal('Hello World'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:vector_math/vector_math_64.dart' show Matrix4, Quad, Vector3; | |
void main() { | |
runApp(const MainApp()); | |
} | |
class MainApp extends StatelessWidget { | |
const MainApp({super.key}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart' | |
show | |
MaterialApp, | |
Scaffold, | |
Colors, | |
ColorScheme, | |
TextTheme, | |
Theme, | |
AppBar, | |
DropdownMenu, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart' | |
show MaterialApp, Scaffold, Colors, ColorScheme, TextTheme, Theme; | |
import 'package:signals/signals_flutter.dart'; | |
import 'package:flutter/foundation.dart' show clampDouble; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/physics.dart'; | |
import 'package:flutter/widgets.dart'; | |
import 'package:vector_math/vector_math_64.dart' show Matrix4, Quad, Vector3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:signals/signals_flutter.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |