soopulae_tex 0.1.1
soopulae_tex: ^0.1.1 copied to clipboard
soopulae_tex_widget
example/lib/main.dart
import "package:flutter/material.dart";
import 'package:soopulae_tex/soopulae_tex.dart';
void main() {
runApp(const MaterialApp(home: MyApp()));
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
final String content = r"""모눈종이에 색칠한 칸의 수와 색칠하지 않은 칸 수를 비로 나타낼 때, 빈칸에 알맞은 수를 쓰세요.<br><br> $$\rightarrow 8 : $$<div style="border: 1px solid blue;border-radius: 10px;display: inline;padding: 2px 6px;">
2
</div><br><br><img src="https://cdn.mathpix.com/snip/images/dYJKxz1X0wgTHCzi1L7Vhnvhb8YrduqRy9cwnZSn5wY.original.fullsize.png" />""";
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Container(
width: 600,
decoration: BoxDecoration(
border: Border.all(
color: Colors.black,
width: 2,
),
),
child: SoopulaeTexView(
isCenter: true,
tex: content,
),
),
),
);
}
}